mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
Fix Coverity defects
This commit is contained in:
parent
9057ffbde4
commit
9b8713aebd
@ -773,8 +773,8 @@ static bool ctr_frame(void* data, const void* frame,
|
||||
}
|
||||
else if (video_info->statistics_show)
|
||||
{
|
||||
struct font_params *osd_params = video_info ?
|
||||
(struct font_params*)&video_info->osd_stat_params : NULL;
|
||||
struct font_params *osd_params = (struct font_params*)
|
||||
&video_info->osd_stat_params;
|
||||
|
||||
if (osd_params)
|
||||
{
|
||||
|
@ -1270,8 +1270,8 @@ static bool d3d11_gfx_frame(
|
||||
}
|
||||
else if (video_info->statistics_show)
|
||||
{
|
||||
struct font_params *osd_params = video_info ?
|
||||
(struct font_params*)&video_info->osd_stat_params : NULL;
|
||||
struct font_params *osd_params = (struct font_params*)
|
||||
&video_info->osd_stat_params;
|
||||
|
||||
if (osd_params)
|
||||
{
|
||||
|
@ -1456,8 +1456,8 @@ static bool d3d12_gfx_frame(
|
||||
}
|
||||
else if (video_info->statistics_show)
|
||||
{
|
||||
struct font_params *osd_params = video_info ?
|
||||
(struct font_params*)&video_info->osd_stat_params : NULL;
|
||||
struct font_params *osd_params = (struct font_params*)
|
||||
&video_info->osd_stat_params;
|
||||
|
||||
if (osd_params)
|
||||
{
|
||||
|
@ -1626,8 +1626,8 @@ static bool d3d8_frame(void *data, const void *frame,
|
||||
}
|
||||
else if (video_info->statistics_show)
|
||||
{
|
||||
struct font_params *osd_params = video_info ?
|
||||
(struct font_params*)&video_info->osd_stat_params : NULL;
|
||||
struct font_params *osd_params = (struct font_params*)
|
||||
&video_info->osd_stat_params;
|
||||
|
||||
if (osd_params)
|
||||
{
|
||||
|
@ -1603,8 +1603,8 @@ static bool d3d9_frame(void *data, const void *frame,
|
||||
}
|
||||
else if (video_info->statistics_show)
|
||||
{
|
||||
struct font_params *osd_params = video_info ?
|
||||
(struct font_params*)&video_info->osd_stat_params : NULL;
|
||||
struct font_params *osd_params = (struct font_params*)
|
||||
&video_info->osd_stat_params;
|
||||
|
||||
if (osd_params)
|
||||
{
|
||||
|
@ -1146,8 +1146,8 @@ static bool gl_frame(void *data, const void *frame,
|
||||
}
|
||||
else if (video_info->statistics_show)
|
||||
{
|
||||
struct font_params *osd_params = video_info ?
|
||||
(struct font_params*)&video_info->osd_stat_params : NULL;
|
||||
struct font_params *osd_params = (struct font_params*)
|
||||
&video_info->osd_stat_params;
|
||||
|
||||
if (osd_params)
|
||||
{
|
||||
|
@ -1344,8 +1344,8 @@ static bool wiiu_gfx_frame(void *data, const void *frame,
|
||||
menu_driver_frame(video_info);
|
||||
else if (video_info->statistics_show)
|
||||
{
|
||||
struct font_params *osd_params = video_info ?
|
||||
(struct font_params*)&video_info->osd_stat_params : NULL;
|
||||
struct font_params *osd_params = (struct font_params*)
|
||||
&video_info->osd_stat_params;
|
||||
|
||||
if (osd_params)
|
||||
{
|
||||
|
@ -209,8 +209,8 @@ static bool switch_frame(void *data, const void *frame,
|
||||
}
|
||||
else if (video_info->statistics_show)
|
||||
{
|
||||
struct font_params *osd_params = video_info ?
|
||||
(struct font_params*)&video_info->osd_stat_params : NULL;
|
||||
struct font_params *osd_params = (struct font_params*)
|
||||
&video_info->osd_stat_params;
|
||||
|
||||
if (osd_params)
|
||||
{
|
||||
|
@ -252,8 +252,8 @@ static bool vita2d_gfx_frame(void *data, const void *frame,
|
||||
}
|
||||
else if (video_info->statistics_show)
|
||||
{
|
||||
struct font_params *osd_params = video_info ?
|
||||
(struct font_params*)&video_info->osd_stat_params : NULL;
|
||||
struct font_params *osd_params = (struct font_params*)
|
||||
&video_info->osd_stat_params;
|
||||
|
||||
if (osd_params)
|
||||
{
|
||||
|
@ -1843,8 +1843,8 @@ static bool vulkan_frame(void *data, const void *frame,
|
||||
}
|
||||
else if (video_info->statistics_show)
|
||||
{
|
||||
struct font_params *osd_params = video_info ?
|
||||
(struct font_params*)&video_info->osd_stat_params : NULL;
|
||||
struct font_params *osd_params = (struct font_params*)
|
||||
&video_info->osd_stat_params;
|
||||
|
||||
if (osd_params)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user