Fix DCFlushRange size calculation

by correcting the operator precedence
This commit is contained in:
pstef 2025-04-06 01:04:06 +00:00
parent 3130717626
commit af8765cb3b
1 changed files with 2 additions and 2 deletions

View File

@ -742,8 +742,8 @@ static void init_vtx(gx_video_t *gx, const video_info_t *video,
}
}
DCFlushRange(g_tex.data, ((g_tex.width *
g_tex.height) * video->rgb32) ? 4 : 2);
DCFlushRange(g_tex.data, g_tex.width * g_tex.height *
(video->rgb32 ? 4 : 2));
gx->rgb32 = video->rgb32;
gx->scale = video->input_scale;