Skip to content

Commit

Permalink
Fixed int division that needs to be floating point (#6033)
Browse files Browse the repository at this point in the history
  • Loading branch information
roymacdonald authored and arturoc committed Jul 30, 2018
1 parent 659cc30 commit 9d8bca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/openFrameworks/app/ofAppGLFWWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9d8bca9

Please sign in to comment.