comparison src/video/x11/SDL_x11video.c @ 88:71774090f286

Hopefully fixed the fullscreen mode code for KDE
author Sam Lantinga <slouken@lokigames.com>
date Sat, 07 Jul 2001 07:59:37 +0000
parents 74212992fb08
children 2a8d929f50e0
comparison
equal deleted inserted replaced
87:3ef4bc90c388 88:71774090f286
851 XMapWindow(SDL_Display, SDL_Window); 851 XMapWindow(SDL_Display, SDL_Window);
852 XMapWindow(SDL_Display, WMwindow); 852 XMapWindow(SDL_Display, WMwindow);
853 if ( flags & SDL_FULLSCREEN ) { 853 if ( flags & SDL_FULLSCREEN ) {
854 screen->flags |= SDL_FULLSCREEN; 854 screen->flags |= SDL_FULLSCREEN;
855 X11_WaitMapped(this, WMwindow); 855 X11_WaitMapped(this, WMwindow);
856 #ifdef GRAB_FULLSCREEN
857 X11_EnterFullScreen(this); 856 X11_EnterFullScreen(this);
858 #else
859 X11_QueueEnterFullScreen(this);
860 #endif
861 } else { 857 } else {
862 screen->flags &= ~SDL_FULLSCREEN; 858 screen->flags &= ~SDL_FULLSCREEN;
863 } 859 }
864 } 860 }
865 return(0); 861 return(0);
879 if ( flags & SDL_FULLSCREEN ) { 875 if ( flags & SDL_FULLSCREEN ) {
880 if ( screen->flags & SDL_FULLSCREEN ) { 876 if ( screen->flags & SDL_FULLSCREEN ) {
881 X11_ResizeFullScreen(this); 877 X11_ResizeFullScreen(this);
882 } else { 878 } else {
883 screen->flags |= SDL_FULLSCREEN; 879 screen->flags |= SDL_FULLSCREEN;
884 #ifdef GRAB_FULLSCREEN
885 X11_EnterFullScreen(this); 880 X11_EnterFullScreen(this);
886 #else
887 X11_QueueEnterFullScreen(this);
888 #endif
889 } 881 }
890 } else { 882 } else {
891 if ( screen->flags & SDL_FULLSCREEN ) { 883 if ( screen->flags & SDL_FULLSCREEN ) {
892 screen->flags &= ~SDL_FULLSCREEN; 884 screen->flags &= ~SDL_FULLSCREEN;
893 X11_LeaveFullScreen(this); 885 X11_LeaveFullScreen(this);
967 } 959 }
968 if ( event_thread ) { 960 if ( event_thread ) {
969 SDL_Lock_EventThread(); 961 SDL_Lock_EventThread();
970 } 962 }
971 if ( on ) { 963 if ( on ) {
972 #ifdef GRAB_FULLSCREEN
973 this->screen->flags |= SDL_FULLSCREEN; 964 this->screen->flags |= SDL_FULLSCREEN;
974 X11_EnterFullScreen(this); 965 X11_EnterFullScreen(this);
975 #else
976 X11_QueueEnterFullScreen(this);
977 #endif
978 } else { 966 } else {
979 this->screen->flags &= ~SDL_FULLSCREEN; 967 this->screen->flags &= ~SDL_FULLSCREEN;
980 X11_LeaveFullScreen(this); 968 X11_LeaveFullScreen(this);
981 } 969 }
982 X11_RefreshDisplay(this); 970 X11_RefreshDisplay(this);