Hi,
I forward this patch to the mailing-list, it seems that one of the
administrator of the mailing-list has rejected it ...
Regards,
Matt
-------- Original Message --------
Subject: [PATCH] Have F10 work under windows
Date: Tue, 19 Jun 2007 00:36:45 +0200
To: Discution sur le d& #233; veloppement de Wormux. <wormux-dev@gna.org>
Good evening,
the attached patch implements a correct way to toggle fullscreen. It's still
partial, as the screen doesn't get refreshed. It probably needs a World.Redraw
but I'm not knowledgeable enough with Wormux.
Best regards,
Kurosu
Index: src/graphic/video.cpp
===================================================================
--- src/graphic/video.cpp (revision 2696)
+++ src/graphic/video.cpp (working copy)
@@ -185,8 +185,7 @@
void Video::ToggleFullscreen()
{
- SDL_WM_ToggleFullScreen( window.GetSurface() );
- fullscreen = !fullscreen;
+ SetConfig(window.GetWidth(), window.GetHeight(), !fullscreen);
}
void Video::SetWindowCaption(std::string caption){
_______________________________________________
Wormux-dev mailing list
Wormux-dev@gna.org
https://mail.gna.org/listinfo/wormux-dev