[Commits] [wesnoth/wesnoth] d4cd7d: Add new twindow setter functions: maximize() and c...
GitHub
noreply at github.com
Fri Jan 1 09:30:17 UTC 2016
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: d4cd7d5a6d4aceb3a15146b57d47ec04d07dec6a
https://github.com/wesnoth/wesnoth/commit/d4cd7d5a6d4aceb3a15146b57d47ec04d07dec6a
Author: Charles Dang <exodia339 at gmail.com>
Date: 2016-01-01 (Fri, 01 Jan 2016)
Changed paths:
M src/sdl/window.cpp
M src/sdl/window.hpp
Log Message:
-----------
Add new twindow setter functions: maximize() and center()
Commit: 79012123b251d5a8956a8a175be51045b569f14a
https://github.com/wesnoth/wesnoth/commit/79012123b251d5a8956a8a175be51045b569f14a
Author: Charles Dang <exodia339 at gmail.com>
Date: 2016-01-01 (Fri, 01 Jan 2016)
Changed paths:
M src/gui/dialogs/lobby_main.cpp
M src/gui/dialogs/title_screen.cpp
Log Message:
-----------
Removed event pump call from fullscreen helper functions in SDL2
Commit: f25d41779478dfb0dfb3b962a8d191a4e51a8193
https://github.com/wesnoth/wesnoth/commit/f25d41779478dfb0dfb3b962a8d191a4e51a8193
Author: Charles Dang <exodia339 at gmail.com>
Date: 2016-01-01 (Fri, 01 Jan 2016)
Changed paths:
M src/preferences_display.cpp
Log Message:
-----------
Removed unused anon functions
Commit: c0bf5e51c88292ed96296152e3614634fe3e65ad
https://github.com/wesnoth/wesnoth/commit/c0bf5e51c88292ed96296152e3614634fe3e65ad
Author: Charles Dang <exodia339 at gmail.com>
Date: 2016-01-01 (Fri, 01 Jan 2016)
Changed paths:
M src/video.cpp
Log Message:
-----------
Center window when changing mode
Commit: 6272190ec5482a3909b524cb13ce13d90b9712c7
https://github.com/wesnoth/wesnoth/commit/6272190ec5482a3909b524cb13ce13d90b9712c7
Author: Charles Dang <exodia339 at gmail.com>
Date: 2016-01-01 (Fri, 01 Jan 2016)
Changed paths:
M src/video.cpp
M src/video.hpp
Log Message:
-----------
Restrict CVideo::modePossible to SDL1 only
It's only called from SDL1 functions anyway
Commit: 20634adcfb7b9b94fa83fc8e20669c386c2cad13
https://github.com/wesnoth/wesnoth/commit/20634adcfb7b9b94fa83fc8e20669c386c2cad13
Author: Charles Dang <exodia339 at gmail.com>
Date: 2016-01-01 (Fri, 01 Jan 2016)
Changed paths:
M src/game_preferences_display.cpp
Log Message:
-----------
Call display change functions directly when changing from prefs instead of using exception
Commit: eb1335b64b5905415ab591d32cdcef4a6b6de4d9
https://github.com/wesnoth/wesnoth/commit/eb1335b64b5905415ab591d32cdcef4a6b6de4d9
Author: Charles Dang <exodia339 at gmail.com>
Date: 2016-01-01 (Fri, 01 Jan 2016)
Changed paths:
M src/video.cpp
Log Message:
-----------
Add flag detection for maximized and fullscreen to CVideo::window_state
Commit: 8732d8179cf3077d9eb5605d5961b1ac6e60a4b1
https://github.com/wesnoth/wesnoth/commit/8732d8179cf3077d9eb5605d5961b1ac6e60a4b1
Author: Charles Dang <exodia339 at gmail.com>
Date: 2016-01-01 (Fri, 01 Jan 2016)
Changed paths:
M src/preferences_display.cpp
M src/video.cpp
M src/video.hpp
Log Message:
-----------
Added and deployed getter method for current window resolution
Commit: c425bd8b159ca704ad65eb92a0db74e918ddf54f
https://github.com/wesnoth/wesnoth/commit/c425bd8b159ca704ad65eb92a0db74e918ddf54f
Author: Charles Dang <exodia339 at gmail.com>
Date: 2016-01-01 (Fri, 01 Jan 2016)
Changed paths:
M src/events.cpp
Log Message:
-----------
Save new resolution on window resize
Commit: 02b992821a3390fdd82ba8081d1acfa9ae4e7b65
https://github.com/wesnoth/wesnoth/commit/02b992821a3390fdd82ba8081d1acfa9ae4e7b65
Author: Charles Dang <exodia339 at gmail.com>
Date: 2016-01-01 (Fri, 01 Jan 2016)
Changed paths:
M src/events.cpp
M src/preferences.cpp
M src/preferences.hpp
Log Message:
-----------
Reimplement preference flag event handling in member function hook
Commit: a3b3c6b1043dd77712e1ab097f8db36f621a9344
https://github.com/wesnoth/wesnoth/commit/a3b3c6b1043dd77712e1ab097f8db36f621a9344
Author: Charles Dang <exodia339 at gmail.com>
Date: 2016-01-01 (Fri, 01 Jan 2016)
Changed paths:
M src/preferences.cpp
M src/preferences.hpp
M src/video.cpp
Log Message:
-----------
Add initial handling and retention of maximized window state
Commit: 185402dc1fb9ff652f77d6ab3288b94f3f5318ec
https://github.com/wesnoth/wesnoth/commit/185402dc1fb9ff652f77d6ab3288b94f3f5318ec
Author: Charles Dang <exodia339 at gmail.com>
Date: 2016-01-01 (Fri, 01 Jan 2016)
Changed paths:
M src/preferences.cpp
Log Message:
-----------
Added a safety check for event type in prefs window event handling
Commit: 98e0bdd83792d9a82628e68c535bbfec13965ed9
https://github.com/wesnoth/wesnoth/commit/98e0bdd83792d9a82628e68c535bbfec13965ed9
Author: Charles Dang <exodia339 at gmail.com>
Date: 2016-01-01 (Fri, 01 Jan 2016)
Changed paths:
M src/game_launcher.cpp
M src/video.cpp
Log Message:
-----------
Refactored handling of window modes in SDL2
Commit: 8af99510ea4d139ea5fb51ed102054b613b87ebd
https://github.com/wesnoth/wesnoth/commit/8af99510ea4d139ea5fb51ed102054b613b87ebd
Author: Charles Dang <exodia339 at gmail.com>
Date: 2016-01-01 (Fri, 01 Jan 2016)
Changed paths:
M src/game_launcher.cpp
Log Message:
-----------
Allow -r command line flag to explicitly override previously saved maximized state
Commit: 75080d8fdc5caf174583b76e4d98c872757cc890
https://github.com/wesnoth/wesnoth/commit/75080d8fdc5caf174583b76e4d98c872757cc890
Author: Charles Dang <exodia339 at gmail.com>
Date: 2016-01-01 (Fri, 01 Jan 2016)
Changed paths:
M src/preferences.cpp
Log Message:
-----------
Allow prefs window SIZE_CHANGED to fall through to RESIZED
Commit: 4d9882a95ec658dd17737d64eec10b3f67b14094
https://github.com/wesnoth/wesnoth/commit/4d9882a95ec658dd17737d64eec10b3f67b14094
Author: Charles Dang <exodia339 at gmail.com>
Date: 2016-01-01 (Fri, 01 Jan 2016)
Changed paths:
M src/video.cpp
Log Message:
-----------
Reworked fullscreen handling a bit
This allows fullscreen toggling to correctly revert window to the previous state
Commit: bd3601b78cd0c0237abee537e45c60513d13fb98
https://github.com/wesnoth/wesnoth/commit/bd3601b78cd0c0237abee537e45c60513d13fb98
Author: Charles Dang <exodia339 at gmail.com>
Date: 2016-01-01 (Fri, 01 Jan 2016)
Changed paths:
M src/video.cpp
Log Message:
-----------
Make sure the SDL_WINDOW_RESIZABLE flag is always set in SDL2
Setting it only during windowed mode doesn't work, since window flags aren't
set again on mode change. This resulted in a case where starting the game
fullscreen and toggling it off then resulted in the window being unresizable.
Commit: a18f86c93e6454f9cb37d35e5fbe3e9c8e2acfef
https://github.com/wesnoth/wesnoth/commit/a18f86c93e6454f9cb37d35e5fbe3e9c8e2acfef
Author: Charles Dang <exodia339 at gmail.com>
Date: 2016-01-01 (Fri, 01 Jan 2016)
Changed paths:
M src/preferences.cpp
M src/video.cpp
Log Message:
-----------
Fixed compilation on SDL1.2
Commit: d9cd1d7f94b5db111a463f3b7c862994c5f7d7ff
https://github.com/wesnoth/wesnoth/commit/d9cd1d7f94b5db111a463f3b7c862994c5f7d7ff
Author: Charles Dang <exodia339 at gmail.com>
Date: 2016-01-01 (Fri, 01 Jan 2016)
Changed paths:
M src/preferences.cpp
M src/video.cpp
Log Message:
-----------
Explicitly set maximized flag to false when setting resolution instead of on resize
Since resize events can be caught in the same scope as maximize events, cases could
arise where the maximize flag was set to true and then to false immediately after,
resulting in inconsistent window states on next launch.
Commit: a6f35e51866c02d14f13a27f590fee50324a9206
https://github.com/wesnoth/wesnoth/commit/a6f35e51866c02d14f13a27f590fee50324a9206
Author: Charles Dang <exodia339 at gmail.com>
Date: 2016-01-01 (Fri, 01 Jan 2016)
Changed paths:
M src/events.cpp
M src/preferences.cpp
M src/preferences.hpp
Log Message:
-----------
Move prefs window event handling to global event context
Commit: eb58f07ffe0f3209fec2c9d279887e4344c8e83b
https://github.com/wesnoth/wesnoth/commit/eb58f07ffe0f3209fec2c9d279887e4344c8e83b
Author: Charles Dang <exodia339 at gmail.com>
Date: 2016-01-01 (Fri, 01 Jan 2016)
Changed paths:
M src/events.cpp
M src/game_launcher.cpp
M src/game_preferences_display.cpp
M src/gui/dialogs/lobby_main.cpp
M src/gui/dialogs/title_screen.cpp
M src/preferences.cpp
M src/preferences.hpp
M src/preferences_display.cpp
M src/sdl/window.cpp
M src/sdl/window.hpp
M src/video.cpp
M src/video.hpp
Log Message:
-----------
Merge pull request #566 from Vultraz/display_cleanup
Refactor window state handling
Compare: https://github.com/wesnoth/wesnoth/compare/cb74629a88ac...eb58f07ffe0f
More information about the Commits
mailing list