sdlmm_surface.cpp Source File (original) (raw)
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 #include "sdlmm_config.h" 00022 00023 #include <SDL.h> 00024 #include "sdlmm_surface.h" 00025 00026 00027 00028 namespace SDLmm { 00029 00030 bool Surface::SetDisplayFormat() { 00031 SDL_Surface *tmp = SDL_DisplayFormat(me); 00032 if(!tmp) return false; 00033 SetSurface(tmp); 00034 return true; 00035 } 00036 00037 bool Surface::SetDisplayFormatAlpha() { 00038 SDL_Surface *tmp = SDL_DisplayFormatAlpha(me); 00039 if(!tmp) return false; 00040 SetSurface(tmp); 00041 return true; 00042 } 00043 } 00044 00045