Fix CXX_BUILD errors

This commit is contained in:
twinaphex 2019-03-13 17:00:52 +01:00
parent 83be5a1950
commit 3691f4fabf
3 changed files with 6 additions and 4 deletions

View File

@ -190,7 +190,7 @@ bool d3d12_init_base(d3d12_video_t* d3d12)
IDXGIAdapter_GetDesc(d3d12->adapter, &desc);
utf16_to_char_string(desc.Description, str, sizeof(str));
utf16_to_char_string((const uint16_t*)desc.Description, str, sizeof(str));
RARCH_LOG("[D3D12]: Using GPU: %s\n", str);

View File

@ -23,6 +23,7 @@
#include <gfx/video_frame.h>
#include <glsym/glsym.h>
#include <string/stdstring.h>
#include <retro_math.h>
#include "../../configuration.h"
#include "../../dynamic.h"

View File

@ -4791,10 +4791,11 @@ bool rarch_write_debug_info(void)
{
float width = 0, height = 0, refresh = 0.0f;
gfx_ctx_metrics_t metrics = {0};
metrics.type = DISPLAY_METRIC_PIXEL_WIDTH;
gfx_ctx_metrics_t metrics;
metrics.type = DISPLAY_METRIC_PIXEL_WIDTH;
metrics.value = &width;
video_context_driver_get_metrics(&metrics);
metrics.type = DISPLAY_METRIC_PIXEL_HEIGHT;