comparison src/video/windib/SDL_dibvideo.c @ 112:9ef74357a5fb

Incorporated slightly modified version of Rainer's WinCE patch
author Sam Lantinga <slouken@lokigames.com>
date Wed, 18 Jul 2001 20:04:23 +0000
parents 3dcf26fa9d15
children 29a638dc26db
comparison
equal deleted inserted replaced
111:53e3d8ba4321 112:9ef74357a5fb
373 HDC hdc; 373 HDC hdc;
374 374
375 hdc = GetDC(SDL_Window); 375 hdc = GetDC(SDL_Window);
376 depth = GetDeviceCaps(hdc, PLANES) * GetDeviceCaps(hdc, BITSPIXEL); 376 depth = GetDeviceCaps(hdc, PLANES) * GetDeviceCaps(hdc, BITSPIXEL);
377 ReleaseDC(SDL_Window, hdc); 377 ReleaseDC(SDL_Window, hdc);
378 #ifndef _WIN32_WCE
379 // AFAIK 16 bit CE devices have indeed RGB 565
378 if ( depth == 16 ) { 380 if ( depth == 16 ) {
379 depth = 15; /* GDI defined as RGB 555 */ 381 depth = 15; /* GDI defined as RGB 555 */
380 } 382 }
383 #endif
381 return(depth); 384 return(depth);
382 #else 385 #else
383 int dib_size; 386 int dib_size;
384 LPBITMAPINFOHEADER dib_hdr; 387 LPBITMAPINFOHEADER dib_hdr;
385 HDC hdc; 388 HDC hdc;