Fix OSX compile.

RB: Please verify if this fix is ok with you.
This commit is contained in:
Wilbert Pol 2011-12-31 11:58:49 +00:00
parent 9cae38e0d8
commit 8ba7ddeec6

View File

@ -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);