Mercurial > sdl-ios-xcode
comparison src/video/macdsp/SDL_dspvideo.c @ 1658:e49147870aac SDL-1.3
glSDL support
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 01 May 2006 06:58:33 +0000 |
parents | 8d9bb0cf2c2a |
children | 14717b52abc0 |
comparison
equal
deleted
inserted
replaced
1657:5b0805ceb50f | 1658:e49147870aac |
---|---|
720 | 720 |
721 static void DSp_UnsetVideoMode(_THIS, SDL_Surface *current) | 721 static void DSp_UnsetVideoMode(_THIS, SDL_Surface *current) |
722 { | 722 { |
723 | 723 |
724 | 724 |
725 if ( current->flags & SDL_OPENGL ) { | 725 if ( current->flags & SDL_INTERNALOPENGL ) { |
726 Mac_GL_Quit (this); | 726 Mac_GL_Quit (this); |
727 } | 727 } |
728 | 728 |
729 if (dsp_context != NULL) { | 729 if (dsp_context != NULL) { |
730 | 730 |
916 DSpContext_GetMonitorFrequency (dsp_context, &freq); | 916 DSpContext_GetMonitorFrequency (dsp_context, &freq); |
917 DSpContext_SetMaxFrameRate (dsp_context, freq >> 16); | 917 DSpContext_SetMaxFrameRate (dsp_context, freq >> 16); |
918 } | 918 } |
919 | 919 |
920 | 920 |
921 if ( (current->flags & SDL_HWSURFACE) || (current->flags & SDL_OPENGL) ) | 921 if ( (current->flags & SDL_HWSURFACE) || (current->flags & SDL_INTERNALOPENGL) ) |
922 DSpContext_SetVBLProc (dsp_context, DSp_VBLProc, NULL); | 922 DSpContext_SetVBLProc (dsp_context, DSp_VBLProc, NULL); |
923 #endif | 923 #endif |
924 | 924 |
925 if (bpp == 8) | 925 if (bpp == 8) |
926 current->flags |= SDL_HWPALETTE; | 926 current->flags |= SDL_HWPALETTE; |
927 | 927 |
928 if (flags & SDL_OPENGL) { | 928 if (flags & SDL_INTERNALOPENGL) { |
929 | 929 |
930 Rect rect; | 930 Rect rect; |
931 RGBColor rgb = { 0.0, 0.0, 0.0 }; | 931 RGBColor rgb = { 0.0, 0.0, 0.0 }; |
932 GrafPtr save_port; | 932 GrafPtr save_port; |
933 | 933 |
958 | 958 |
959 SDL_SetError ("DSp_SetVideoMode : could not create OpenGL context."); | 959 SDL_SetError ("DSp_SetVideoMode : could not create OpenGL context."); |
960 return NULL; | 960 return NULL; |
961 } | 961 } |
962 | 962 |
963 current->flags |= SDL_OPENGL; | 963 current->flags |= SDL_INTERNALOPENGL; |
964 } | 964 } |
965 | 965 |
966 return current; | 966 return current; |
967 } | 967 } |
968 | 968 |