mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
(Metal raster font) remove video_frame_info dep
This commit is contained in:
parent
083a0453c6
commit
f2df63e246
@ -89,9 +89,10 @@ static void *metal_init(
|
|||||||
}
|
}
|
||||||
|
|
||||||
static bool metal_frame(void *data, const void *frame,
|
static bool metal_frame(void *data, const void *frame,
|
||||||
unsigned frame_width, unsigned frame_height,
|
unsigned frame_width, unsigned frame_height,
|
||||||
uint64_t frame_count,
|
uint64_t frame_count,
|
||||||
unsigned pitch, const char *msg, video_frame_info_t *video_info)
|
unsigned pitch, const char *msg,
|
||||||
|
video_frame_info_t *video_info)
|
||||||
{
|
{
|
||||||
MetalDriver *md = (__bridge MetalDriver *)data;
|
MetalDriver *md = (__bridge MetalDriver *)data;
|
||||||
return [md renderFrame:frame
|
return [md renderFrame:frame
|
||||||
|
@ -524,8 +524,9 @@ static void metal_raster_font_render_msg(
|
|||||||
const struct font_params *params)
|
const struct font_params *params)
|
||||||
{
|
{
|
||||||
MetalRaster *r = (__bridge MetalRaster *)data;
|
MetalRaster *r = (__bridge MetalRaster *)data;
|
||||||
unsigned width = video_info->width;
|
MetalDriver *md = (__bridge MetalDriver *)r->_driver;
|
||||||
unsigned height = video_info->height;
|
unsigned width = md->_viewport->full_width;
|
||||||
|
unsigned height = md->_viewport->full_height;
|
||||||
[r renderMessage:msg width:width height:height params:params];
|
[r renderMessage:msg width:width height:height params:params];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user