make it work on retina screens

This commit is contained in:
Konstantin Käfer
2014-01-21 16:16:21 +01:00
parent 50f99e414e
commit 474fb42807
5 changed files with 20 additions and 10 deletions

View File

@@ -32,9 +32,11 @@ void Map::loadSettings() {
update();
}
void Map::resize(uint32_t width, uint32_t height) {
void Map::resize(uint32_t width, uint32_t height, uint32_t fb_width, uint32_t fb_height) {
transform.width = width;
transform.height = height;
transform.fb_width = fb_width;
transform.fb_height = fb_height;
update();
}