mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
(MSVC) Build fixes
This commit is contained in:
parent
64446ef497
commit
4b027ed975
@ -121,12 +121,10 @@ int database_info_write_rdl(const char *dir)
|
||||
static char *bin_to_hex_alloc(const uint8_t *data, size_t len)
|
||||
{
|
||||
size_t i;
|
||||
char *ret=malloc(len*2+1);
|
||||
char *ret= (char*)malloc(len*2+1);
|
||||
|
||||
for (i = 0; i < len; i++)
|
||||
{
|
||||
snprintf(ret+i*2, 3, "%02X", data[i]);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -359,12 +359,12 @@ static void d3d_calculate_rect(d3d_video_t *d3d,
|
||||
{
|
||||
if (g_settings.video.aspect_ratio_idx == ASPECT_RATIO_CUSTOM)
|
||||
{
|
||||
const video_viewport_t &custom =
|
||||
g_extern.console.screen.viewports.custom_vp;
|
||||
const video_viewport_t *custom =
|
||||
&g_extern.console.screen.viewports.custom_vp;
|
||||
|
||||
if (custom)
|
||||
d3d_set_viewport(d3d, custom.x, custom.y,
|
||||
custom.width, custom.height);
|
||||
if (custom)
|
||||
d3d_set_viewport(d3d, custom->x, custom->y,
|
||||
custom->width, custom->height);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user