DIB_PAL_COLORS, NULL,NULL,0); ::ReleaseDC(hWnd,hScreenDC); delete [](BYTE *)lpbi; return TRUE; } is there anything wrong with my code ? is not, then after i've created the bitmap, i use the function below to create a logical palette :HPALETTE...
426 colorTable[i].rgbGreen = pal_ents[*index].peGreen; 427 colorTable[i].rgbBlue = pal_ents[*index].peBlue; 428 colorTable[i].rgbReserved = 0; 429 } This happens when X11DRV_DIB_BuildColorTable() is called with coloruse==DIB_PAL_COLORS, meaning we use an 8-bit palette. It s...