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; }