<URL: http://bugs.freeciv.org/Ticket/Display.html?id=38552 >

> [EMAIL PROTECTED] - Di 20. Mär 2007, 21:53:18]:
> 
> Hello,
> Here I am once again with another problem. My problem is that I tried 
> the SDL client and I was having trouble with the resolution. I was 
> trying to set it to full-screen and 1280 by 800 resolution. It didn't 
> have a 1280 by 800 setting and I could not get it to stay in 
> full-screen. Could you please fix this or tell me how or what I need to 
> do to fix it.
> 
> Christopher
> 
> 

Does the 1280x800 resolution work when you set it manually in the
.civclientrc file? (look for "gui_sdl_screen_width" and
"gui_sdl_screen_height")

The attached patch fixes the "could not get it to stay in full-screen"
problem.

Index: client/gui-sdl/optiondlg.c
===================================================================
--- client/gui-sdl/optiondlg.c	(Revision 12860)
+++ client/gui-sdl/optiondlg.c	(Arbeitskopie)
@@ -424,7 +424,7 @@
   
     set_wstate(pWidget, FC_WS_DISABLED);
   
-    if (gui_sdl_fullscreen != (Main.screen->flags & SDL_FULLSCREEN)) {
+    if (gui_sdl_fullscreen != BOOL_VAL(Main.screen->flags & SDL_FULLSCREEN)) {
       tmp_flags ^= SDL_FULLSCREEN;
       tmp_flags ^= SDL_RESIZABLE;
     }
@@ -440,7 +440,7 @@
   
     gui_sdl_screen_width = Main.screen->w;
     gui_sdl_screen_height = Main.screen->h;
-
+    
     /* change setting label */
     if (Main.screen->flags & SDL_FULLSCREEN) {
       my_snprintf(cBuf, sizeof(cBuf), _("Current Setup\nFullscreen %dx%d"),
@@ -665,8 +665,8 @@
   
     /* gui_sdl_fullscreen check box */
     pTmpGui = create_checkbox(pWindow->dst,
-                  ((Main.screen->flags & SDL_FULLSCREEN) == SDL_FULLSCREEN),
-                                                  WF_RESTORE_BACKGROUND);
+                              (Main.screen->flags & SDL_FULLSCREEN),
+                              WF_RESTORE_BACKGROUND);
     
     pTmpGui->action = toggle_fullscreen_callback;
     set_wstate(pTmpGui, FC_WS_NORMAL);
@@ -2322,7 +2322,7 @@
 
   SDL_Client_Flags |= (CF_OPTION_MAIN | CF_OPTION_OPEN);
   
-  gui_sdl_fullscreen = Main.screen->flags & SDL_FULLSCREEN;
+  gui_sdl_fullscreen = BOOL_VAL(Main.screen->flags & SDL_FULLSCREEN);
   
   disable_main_widgets();
   
@@ -2340,7 +2340,7 @@
 				
     SDL_Client_Flags &= ~(CF_OPTION_MAIN | CF_OPTION_OPEN);
 			  
-    gui_sdl_fullscreen = Main.screen->flags & SDL_FULLSCREEN;
+    gui_sdl_fullscreen = BOOL_VAL(Main.screen->flags & SDL_FULLSCREEN);
     
     FC_FREE(pOption_Dlg);
     enable_main_widgets();
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to