comparison Render.cpp @ 2098:7810cb3a5fb7

Popup window in MainMenu not shown
author Ritor1
date Fri, 13 Dec 2013 16:10:36 +0600
parents 2b39f6b451f9
children ee2724b9ca05
comparison
equal deleted inserted replaced
2097:2b39f6b451f9 2098:7810cb3a5fb7
7082 for (uint y = 0; y < uHeight; ++y) 7082 for (uint y = 0; y < uHeight; ++y)
7083 { 7083 {
7084 void *pDst = (char *)pTargetSurface + (FORCE_16_BITS ? 2 : 4) * (uX + (y + uY) * uTargetSurfacePitch); 7084 void *pDst = (char *)pTargetSurface + (FORCE_16_BITS ? 2 : 4) * (uX + (y + uY) * uTargetSurfacePitch);
7085 7085
7086 memset32(pDst, 7086 memset32(pDst,
7087 FORCE_16_BITS ? twoColors : 0xFF000000 |Color32(uColor16), // two colors per int (16bit) or 1 (32bit) 7087 FORCE_16_BITS ? twoColors : 0xFF000000 | Color32(uColor16), // two colors per int (16bit) or 1 (32bit)
7088 uWidth / (FORCE_16_BITS ? 2 : 1)); // two pixels per int (16bit) or 1 (32bit) 7088 uWidth / (FORCE_16_BITS ? 2 : 1)); // two pixels per int (16bit) or 1 (32bit)
7089 7089
7090 if (FORCE_16_BITS && uWidth & 1) // we may miss one pixel for 16bit 7090 if (FORCE_16_BITS && uWidth & 1) // we may miss one pixel for 16bit
7091 ((unsigned __int16 *)pTargetSurface)[uX + uWidth - 1 + (y + uY) * uTargetSurfacePitch] = uColor16; 7091 ((unsigned __int16 *)pTargetSurface)[uX + uWidth - 1 + (y + uY) * uTargetSurfacePitch] = uColor16;
7092 } 7092 }