From cb860e8150dcf1a10598c1a4ea9dedcad97d09fd Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 28 Sep 2016 15:51:05 +0200 Subject: [PATCH] Fix gamma test rendering using wrong unit --- tests/gamma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gamma.c b/tests/gamma.c index 5c037e42..dc1d9c3b 100644 --- a/tests/gamma.c +++ b/tests/gamma.c @@ -121,7 +121,7 @@ int main(int argc, char** argv) struct nk_panel layout; struct nk_rect area; - glfwGetFramebufferSize(window, &width, &height); + glfwGetWindowSize(window, &width, &height); area = nk_rect(0.f, 0.f, (float) width, (float) height); glClear(GL_COLOR_BUFFER_BIT);