GSoC/GCI Archive
Google Code-in 2012 Copyleft Games Group

Hedgewars: Resolution freedom

completed by: vitiv

mentors: Andrey Korotaev, Xeli, Sheepy, koda

Remember to join our IRC channel when working on this task! We are on #hedgewars at freenode.net. If you are new to IRC, read this tutorial from a past GCI participant.

Your task

Hedgewars options for video allow for specifying fullscreen property and window resolution. Not only this is quite sparing, but also plainly wrong. In fact the game window could be of *ANY* size, while the listed sizes are referring only to fullscreen resolutions!

Your task is to clean up this mess: edit QTfrontend/ui/page/pageoptions.cpp so that user can input any resolution for the game window and specify that the list applies only for fullscreen (hence gray it out when not fullscreen). A nice option would be to have the window size be of 2/3 of the screen resolution, maybe could be set as default resolution.

Deliverable

A working patch, that applies cleanly to our source tree. This patch should be in the form of a pull from clone, hg export or unified diff format (in order of preference) implementing the functionality required.