Skip to content

Commit

Permalink
fix calculation when calculation is not actually needed
Browse files Browse the repository at this point in the history
  • Loading branch information
hwhw committed Nov 25, 2014
1 parent 2b2f704 commit 6565760
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ffi/framebuffer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ end

function fb:calculateRealCoordinates(x, y)

if not (x or y) then return end
if not self.viewport then return x, y end

--[[
Expand Down

0 comments on commit 6565760

Please sign in to comment.