correctly update the map dimensions on rotate

refs #37
This commit is contained in:
Konstantin Käfer
2014-04-10 14:07:36 -04:00
parent eb499e77c1
commit 06bcab9560
4 changed files with 21 additions and 5 deletions

View File

@@ -74,8 +74,8 @@ void Painter::setupShaders() {
textShader = std::make_unique<TextShader>();
}
void Painter::resize(int width, int height) {
glViewport(0, 0, width, height);
void Painter::resize() {
glViewport(0, 0, transform.getFramebufferWidth(), transform.getFramebufferHeight());
}
void Painter::useProgram(uint32_t program) {