]> git.mxchange.org Git - quix0rs-blobwars.git/commit
Make the window resizable, and set a reasonable initial size.
authorGuus Sliepen <guus@debian.org>
Sun, 9 Aug 2015 12:31:26 +0000 (14:31 +0200)
committerGuus Sliepen <guus@debian.org>
Sun, 9 Aug 2015 12:31:26 +0000 (14:31 +0200)
commit7211e3632aeeb1128a8f29d667149a2b9f381e57
treea85333ea2d8425d293a8ae33bf2db1cb050eecc7
parentd64293b46c75672564026288c05d3d998fa74e80
Make the window resizable, and set a reasonable initial size.

Now that SDL takes care of properly scaling the graphics, there is no
need for the window to be exactly 640x480. So allow the user to resize
it. To cope with high DPI screens, set the initial window size to a
multiple of 640x480 if it would fill less than half the width and
height.
src/init.cpp