mirror of
https://github.com/libretro/RetroArch
synced 2025-02-24 18:39:59 +00:00
C89 Compliance
For loop iterators updated for C89 compliance.
This commit is contained in:
parent
2f36c94f3f
commit
05c5bdf587
@ -1550,7 +1550,8 @@ static bool d3d8_frame(void *data, const void *frame,
|
||||
|
||||
if (black_frame_insertion && !d3d->menu->enabled)
|
||||
{
|
||||
for ( int i = 0; i < video_info->black_frame_insertion; ++i)
|
||||
unsigned n;
|
||||
for (n = 0; n < video_info->black_frame_insertion; ++n)
|
||||
{
|
||||
if (!d3d8_swap(d3d, d3d->dev) || d3d->needs_restore)
|
||||
return true;
|
||||
|
@ -1591,7 +1591,8 @@ static bool d3d9_frame(void *data, const void *frame,
|
||||
|
||||
if (black_frame_insertion && !d3d->menu->enabled)
|
||||
{
|
||||
for ( int i = 0; i < video_info->black_frame_insertion; ++i)
|
||||
unsigned n;
|
||||
for (n = 0; n < video_info->black_frame_insertion; ++n)
|
||||
{
|
||||
if (!d3d9_swap(d3d, d3d->dev) || d3d->needs_restore)
|
||||
return true;
|
||||
|
@ -3102,8 +3102,8 @@ static bool gl2_frame(void *data, const void *frame,
|
||||
&& !runloop_is_paused
|
||||
&& !gl->menu_texture_enable)
|
||||
{
|
||||
|
||||
for (int i = 0; i < black_frame_insertion; ++i)
|
||||
unsigned n;
|
||||
for (n = 0; n < black_frame_insertion; ++n)
|
||||
{
|
||||
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
@ -915,7 +915,8 @@ static bool gl1_gfx_frame(void *data, const void *frame,
|
||||
&& !gl1->menu_texture_enable)
|
||||
{
|
||||
|
||||
for (int i = 0; i < video_info->black_frame_insertion; ++i)
|
||||
unsigned n;
|
||||
for (n = 0; n < video_info->black_frame_insertion; ++n)
|
||||
{
|
||||
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
@ -2005,8 +2005,8 @@ static bool gl_core_frame(void *data, const void *frame,
|
||||
&& !runloop_is_paused
|
||||
&& !gl->menu_texture_enable)
|
||||
{
|
||||
|
||||
for (int i = 0; i < black_frame_insertion; ++i)
|
||||
unsigned n;
|
||||
for (n = 0; n < black_frame_insertion; ++n)
|
||||
{
|
||||
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
@ -2270,10 +2270,13 @@ static bool vulkan_frame(void *data, const void *frame,
|
||||
&& !runloop_is_slowmotion
|
||||
&& !runloop_is_paused
|
||||
&& !vk->menu.enable)
|
||||
for ( int i = 0; i < black_frame_insertion; ++i)
|
||||
{
|
||||
unsigned n;
|
||||
for (n = 0; n < black_frame_insertion; ++n)
|
||||
{
|
||||
vulkan_inject_black_frame(vk, video_info, vk->ctx_data);
|
||||
}
|
||||
}
|
||||
|
||||
/* Vulkan doesn't directly support swap_interval > 1,
|
||||
* so we fake it by duping out more frames. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user