mirror of
https://github.com/holub/mame
synced 2025-05-16 19:00:43 +03:00
Fix OSX compile.
RB: Please verify if this fix is ok with you.
This commit is contained in:
parent
9cae38e0d8
commit
8ba7ddeec6
@ -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));
|
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 )
|
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
|
// copy the rendered character image into it
|
||||||
for (int y = 0; y < bitmap->height; y++)
|
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;
|
UINT8 *srcrow = (UINT8 *)drawsurf->pixels;
|
||||||
|
|
||||||
srcrow += (y * drawsurf->pitch);
|
srcrow += (y * drawsurf->pitch);
|
||||||
|
Loading…
Reference in New Issue
Block a user