VC2005 Support compilable and runnable in debug mode. AJ187 confirmed these changes work in VC2003, so nothing should be broken. Thanks to Mystik EE of DDRUK for the assistance.

This commit is contained in:
Jason Felds
2006-03-12 06:32:21 +00:00
parent f820e6b39e
commit 9f46acd2d4
6 changed files with 23 additions and 14 deletions
+3 -1
View File
@@ -10,6 +10,7 @@
#include <streams.h>
#include <limits.h>
#include <dvdmedia.h>
#include <wingdi.h>
static UINT MsgDestroy;
@@ -2104,7 +2105,8 @@ HRESULT CImagePalette::MakeIdentityPalette(PALETTEENTRY *pEntry,INT iColours, LP
// I am not sure what will be in the flags fields for the system entries
UINT Result = GetSystemPaletteEntries(hdc,0,PalLoCount,SystemEntries);
for (UINT Count = 0;Count < Result;Count++) {
UINT Count;
for (Count = 0;Count < Result;Count++) {
if (SystemEntries[Count].peRed != pEntry[Count].peRed ||
SystemEntries[Count].peGreen != pEntry[Count].peGreen ||
SystemEntries[Count].peBlue != pEntry[Count].peBlue) {