Skip to content

Commit

Permalink
bugfix on render_offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre-LA committed Aug 19, 2021
1 parent 762b7ec commit a514005
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nene/core.nelua
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ function Nene:render_copy(texture: *SDL_Texture, source: facultative(Rect), dest

## if not source.type.is_niltype then
local src_rect: SDL_Rect = {
x = math.ifloor(source.x - self.render_offset.x),
y = math.ifloor(source.y - self.render_offset.y),
x = math.ifloor(source.x),
y = math.ifloor(source.y),
w = source.w,
h = source.h
}
Expand Down

0 comments on commit a514005

Please sign in to comment.