diff --git a/src/osd/sdl/sdlmain.c b/src/osd/sdl/sdlmain.c index b6b74c8d1c0..fdbb9bef656 100644 --- a/src/osd/sdl/sdlmain.c +++ b/src/osd/sdl/sdlmain.c @@ -816,7 +816,7 @@ bitmap_t *sdl_osd_interface::font_get_bitmap(osd_font font, unicode_char chnum, bitmap = auto_alloc(machine(), bitmap_t(bitmap_width, bitmap_height, BITMAP_FORMAT_ARGB32)); - context_ref = CGBitmapContextCreate( bitmap->base, bitmap_width, bitmap_height, bits_per_component, bitmap->rowpixels*4, color_space, bitmap_info ); + context_ref = CGBitmapContextCreate( bitmap->raw_pixptr(0), bitmap_width, bitmap_height, bits_per_component, bitmap->rowpixels()*4, color_space, bitmap_info ); if( context_ref != NULL ) { @@ -1080,7 +1080,7 @@ bitmap_t *sdl_osd_interface::font_get_bitmap(osd_font font, unicode_char chnum, // copy the rendered character image into it for (int y = 0; y < bitmap->height; y++) { - UINT32 *dstrow = BITMAP_ADDR32(bitmap, y, 0); + UINT32 *dstrow = &bitmap->pix32(y); UINT8 *srcrow = (UINT8 *)drawsurf->pixels; srcrow += (y * drawsurf->pitch);