mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
win32
This commit is contained in:
parent
bfc08d6543
commit
b1e21add06
@ -17,6 +17,7 @@
|
|||||||
#include "pnmWriter.h"
|
#include "pnmWriter.h"
|
||||||
#include "pnmBrush.h"
|
#include "pnmBrush.h"
|
||||||
#include "config_pnmimage.h"
|
#include "config_pnmimage.h"
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: PNMImage::Constructor
|
// Function: PNMImage::Constructor
|
||||||
@ -1124,7 +1125,7 @@ make_histogram(PNMImage::Histogram &histogram) {
|
|||||||
pixels.push_back(PixelSpecCount((*hi).first, (*hi).second));
|
pixels.push_back(PixelSpecCount((*hi).first, (*hi).second));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sort(pixels.begin(), pixels.end());
|
::sort(pixels.begin(), pixels.end());
|
||||||
|
|
||||||
histogram.swap(pixels, hist_map);
|
histogram.swap(pixels, hist_map);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user