Fixed typo in display.c for code coherence.
This commit is contained in:
parent
50a4dbdafa
commit
09b6276d7f
|
|
@ -154,8 +154,7 @@ int display_draw_texture(texture_t *texture, const rect_t *src_rect, const rect_
|
|||
if(src_rect) rect_to_frect(src_rect, &src_frect);
|
||||
|
||||
frect_t dst_frect;
|
||||
if(dst_rect)
|
||||
dst_frect = (frect_t) {
|
||||
if(dst_rect) dst_frect = (frect_t) {
|
||||
.x = (dst_rect->x - game.camera.view_rect.x) * (DISPLAY_WIDTH / game.camera.view_rect.w),
|
||||
.y = (dst_rect->y - game.camera.view_rect.y) * (DISPLAY_HEIGHT / game.camera.view_rect.h),
|
||||
.w = dst_rect->w * (DISPLAY_WIDTH / game.camera.view_rect.w),
|
||||
|
|
|
|||
Loading…
Reference in New Issue