
* Removed display::screen_area(), display::w(), and display::h(). * Moved the global screen_area() function into the CVideo class. * Renamed CVideo::getx() and gety() to get_width() and get_height() * Made those two functions return the result of screen_area() instead of the other way around. * Added preliminary support for high-DPI rendering to screen_area() Note on the last point: When I fixed bug #1772 (aa8f6c7e7 right now but will probably change with rebasing) I noted that SDL_GetWindowSize and SDL_GetRendererOutputSize returned the same results for me (even with Window's automatic scaling for non-high-DPI-enabled apps disabled) but that the SDL documentation stated the former returned screen coordinates and the latter pixels. In that same commit I changed the dimension functions to use SDL_GetWindowSize. I've now reversed that decision and gone back to using SDL_GetRendererOutputSize so I can guarantee output in pixels. If use_pixels is false, the code will return coordinates in 96 DPI, so I need to have pixel measurements for the calculations. Again, though, I do not know if SDL_GetWindowSize returns a different value that pixel size (which it's said to do) on macOS or iOS. I'll need to do some testing. It's possible on those platforms I won't need the 96 DPI measurements, but it's also possible it will be needed on on platforms, since all of our code relies on pixel measurements.
About
The Battle for Wesnoth is an Open Source, turn-based tactical strategy game with a high fantasy theme, featuring both singleplayer and online/hotseat multiplayer combat. Fight a desperate battle to reclaim the throne of Wesnoth, or take hand in any number of other adventures.
License
Please see the wiki for information regarding The Battle for Wesnoth's licensing:
https://wiki.wesnoth.org/Wesnoth:Copyrights
Installing
See INSTALL for instructions on how to build the game from source code.
More Information
For extensive documentation about all aspects of the game, see the official Battle for Wesnoth web site.
A (translated) description of how to play the game can be found in doc/manual/manual.*.html, or online at:
https://wiki.wesnoth.org/WesnothManual
The official Battle for Wesnoth Forums (with over 400,000 posts from more than 20,000 registered members) can be found at: