diff options
Diffstat (limited to 'src/osd/sdl/drawogl.c')
-rw-r--r-- | src/osd/sdl/drawogl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/osd/sdl/drawogl.c b/src/osd/sdl/drawogl.c index 59dfb6f5400..78a5b45c882 100644 --- a/src/osd/sdl/drawogl.c +++ b/src/osd/sdl/drawogl.c @@ -513,7 +513,7 @@ static void load_gl_lib(running_machine &machine) */ const char *stemp; - stemp = options_get_string(&machine.options(), SDLOPTION_GL_LIB); + stemp = downcast<sdl_options &>(machine.options()).gl_lib(); if (stemp != NULL && strcmp(stemp, SDLOPTVAL_AUTO) == 0) stemp = NULL; @@ -1241,7 +1241,7 @@ static int drawogl_window_draw(sdl_window_info *window, UINT32 dc, int update) // we're doing nothing 3d, so the Z-buffer is currently not interesting glDisable(GL_DEPTH_TEST); - if (options_get_bool(&window->machine->options(), OPTION_ANTIALIAS)) + if (window->machine->options().antialias()) { // enable antialiasing for lines glEnable(GL_LINE_SMOOTH); @@ -2973,9 +2973,9 @@ static void texture_shader_update(sdl_window_info *window, texture_info *texture container->get_user_settings(settings); //FIXME: Intended behaviour #if 1 - vid_attributes[0] = options_get_float(&window->machine->options(), OPTION_GAMMA); - vid_attributes[1] = options_get_float(&window->machine->options(), OPTION_CONTRAST); - vid_attributes[2] = options_get_float(&window->machine->options(), OPTION_BRIGHTNESS); + vid_attributes[0] = window->machine->options().gamma(); + vid_attributes[1] = window->machine->options().contrast(); + vid_attributes[2] = window->machine->options().brightness(); #else vid_attributes[0] = settings.gamma; vid_attributes[1] = settings.contrast; |