Mercurial > sdl-ios-xcode
comparison src/video/windib/SDL_dibvideo.c @ 3976:8582c6a5ca16 SDL-1.2
Added initial support for Nintendo DS, based on the work by Troy Davis (GPF)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 25 Jun 2007 00:50:20 +0000 |
parents | b2f59aadec0d |
children | b0d021cf41b6 |
comparison
equal
deleted
inserted
replaced
3975:e85e65aec22f | 3976:8582c6a5ca16 |
---|---|
749 } | 749 } |
750 this->UpdateRects = DIB_NormalUpdate; | 750 this->UpdateRects = DIB_NormalUpdate; |
751 | 751 |
752 /* Set video surface flags */ | 752 /* Set video surface flags */ |
753 if ( bpp <= 8 ) { | 753 if ( bpp <= 8 ) { |
754 if ( (video->flags & SDL_FULLSCREEN) == SDL_FULLSCREEN ) { | |
755 hdc = GetDC(SDL_Window); | |
756 SetSystemPaletteUse(hdc, SYSPAL_NOSTATIC); | |
757 ReleaseDC(SDL_Window, hdc); | |
758 } | |
754 /* BitBlt() maps colors for us */ | 759 /* BitBlt() maps colors for us */ |
755 video->flags |= SDL_HWPALETTE; | 760 video->flags |= SDL_HWPALETTE; |
756 } | 761 } |
757 } | 762 } |
758 #ifndef _WIN32_WCE | 763 #ifndef _WIN32_WCE |