Cleanup core_frame

This commit is contained in:
twinaphex 2016-10-25 04:58:00 +02:00
parent a8408d663e
commit 3094e47820
2 changed files with 4 additions and 5 deletions

2
core.h
View File

@ -170,7 +170,7 @@ bool core_unload_game(void);
bool core_reset(void);
bool core_frame(retro_ctx_frame_info_t *info);
void core_frame(retro_ctx_frame_info_t *info);
bool core_poll(void);

View File

@ -320,14 +320,13 @@ void core_set_serialization_quirks(uint64_t quirks)
core_serialization_quirks_v = quirks;
}
bool core_frame(retro_ctx_frame_info_t *info)
void core_frame(retro_ctx_frame_info_t *info)
{
if (!info || !retro_ctx.frame_cb)
return false;
if (!retro_ctx.frame_cb)
return;
retro_ctx.frame_cb(
info->data, info->width, info->height, info->pitch);
return true;
}
bool core_poll(void)