diff --git a/gfx/drivers/omap_gfx.c b/gfx/drivers/omap_gfx.c index a936f98a24..689ff09fe4 100644 --- a/gfx/drivers/omap_gfx.c +++ b/gfx/drivers/omap_gfx.c @@ -845,9 +845,9 @@ static void omap_init_font(omap_video_t *vid, const char *font_path, unsigned fo return; } - r = settings->video.msg_color_r * 255; - g = settings->video.msg_color_g * 255; - b = settings->video.msg_color_b * 255; + r = settings->floats.video_msg_color_r * 255; + g = settings->floats.video_msg_color_g * 255; + b = settings->floats.video_msg_color_b * 255; r = (r < 0) ? 0 : (r > 255 ? 255 : r); g = (g < 0) ? 0 : (g > 255 ? 255 : g); @@ -862,8 +862,8 @@ static void omap_render_msg(omap_video_t *vid, const char *msg) { const struct font_atlas *atlas = NULL; settings_t *settings = config_get_ptr(); - int msg_base_x = settings->video.msg_pos_x * vid->width; - int msg_base_y = (1.0 - settings->video.msg_pos_y) * vid->height; + int msg_base_x = settings->floats.video_msg_pos_x * vid->width; + int msg_base_y = (1.0 - settings->floats.video_msg_pos_y) * vid->height; if (!vid->font) return; diff --git a/gfx/drivers/sdl_gfx.c b/gfx/drivers/sdl_gfx.c index b61841ee1e..9df7bab82a 100644 --- a/gfx/drivers/sdl_gfx.c +++ b/gfx/drivers/sdl_gfx.c @@ -132,8 +132,8 @@ static void sdl_render_msg(sdl_video_t *vid, SDL_Surface *buffer, atlas = vid->font_driver->get_atlas(vid->font); - msg_base_x = settings->video.msg_pos_x * width; - msg_base_y = (1.0f - settings->video.msg_pos_y) * height; + msg_base_x = settings->floats.video_msg_pos_x * width; + msg_base_y = (1.0f - settings->floats.video_msg_pos_y) * height; rshift = fmt->Rshift; gshift = fmt->Gshift;