From 9d8bca997f74628c49f9b0170e5537480335d6c8 Mon Sep 17 00:00:00 2001 From: Roy Macdonald Date: Mon, 30 Jul 2018 15:16:13 +0100 Subject: [PATCH] Fixed int division that needs to be floating point (#6033) --- libs/openFrameworks/app/ofAppGLFWWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/openFrameworks/app/ofAppGLFWWindow.cpp b/libs/openFrameworks/app/ofAppGLFWWindow.cpp index bc3d4434e09..bd8e7760025 100644 --- a/libs/openFrameworks/app/ofAppGLFWWindow.cpp +++ b/libs/openFrameworks/app/ofAppGLFWWindow.cpp @@ -304,7 +304,7 @@ void ofAppGLFWWindow::setup(const ofGLFWWindowSettings & _settings){ //this lets us detect if the window is running in a retina mode if( framebufferW != currentW){ - pixelScreenCoordScale = framebufferW / windowW; + pixelScreenCoordScale = (float)framebufferW / (float)windowW; if( pixelScreenCoordScale < 1 ){ pixelScreenCoordScale = 1; }