Fixed typo in display.c for code coherence.

This commit is contained in:
Ulysse Cura 2026-11-28 11:34:21 +01:00
parent 50a4dbdafa
commit 09b6276d7f
1 changed files with 1 additions and 2 deletions

View File

@ -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),