mirror of
https://github.com/holub/mame
synced 2025-05-22 21:58:57 +03:00
Revert r14902 for sdlmain.c. Fixes compilation on Intel OS X.
This commit is contained in:
parent
3ce2169591
commit
2187468105
@ -773,7 +773,7 @@ bitmap_t *sdl_osd_interface::font_get_bitmap(osd_font font, unicode_char chnum,
|
|||||||
{
|
{
|
||||||
UniChar uni_char;
|
UniChar uni_char;
|
||||||
CGGlyph glyph;
|
CGGlyph glyph;
|
||||||
bitmap_t &bitmap = (bitmap_t *)NULL;
|
bitmap_t *bitmap = (bitmap_t *)NULL;
|
||||||
CTFontRef ct_font = (CTFontRef)font;
|
CTFontRef ct_font = (CTFontRef)font;
|
||||||
const CFIndex count = 1;
|
const CFIndex count = 1;
|
||||||
CGRect bounding_rect, success_rect;
|
CGRect bounding_rect, success_rect;
|
||||||
@ -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.raw_pixptr(0), 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 )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user