From f6cb583e27ffd6046da7a28edc35fc8001ea9415 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 12 Mar 2012 11:55:50 +0000 Subject: Replaced fl_copy_offscreen_with_alpha() by Fl_GDI_Graphics_Driver::copy_offscreen_with_alpha() and fl_create_offscreen_with_alpha() by Fl_Quartz_Graphics_Driver::create_offscreen_with_alpha() git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9278 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/Fl_cocoa.mm') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index f828a5865..2f41c7c48 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -78,7 +78,6 @@ typedef unsigned int NSUInteger; // external functions extern void fl_fix_focus(); -extern Fl_Offscreen fl_create_offscreen_with_alpha(int w, int h); extern unsigned short *fl_compute_macKeyLookUp(); // forward definition of functions in this file @@ -3154,7 +3153,7 @@ static NSImage *imageFromText(const char *text, int *pwidth, int *pheight) } height = nl * fl_height() + 3; width += 6; - Fl_Offscreen off = fl_create_offscreen_with_alpha(width, height); + Fl_Offscreen off = Fl_Quartz_Graphics_Driver::create_offscreen_with_alpha(width, height); fl_begin_offscreen(off); CGContextSetRGBFillColor( (CGContextRef)off, 0,0,0,0); fl_rectf(0,0,width,height); @@ -3183,7 +3182,7 @@ static NSImage *imageFromText(const char *text, int *pwidth, int *pheight) static NSImage *defaultDragImage(int *pwidth, int *pheight) { const int width = 16, height = 16; - Fl_Offscreen off = fl_create_offscreen_with_alpha(width, height); + Fl_Offscreen off = Fl_Quartz_Graphics_Driver::create_offscreen_with_alpha(width, height); fl_begin_offscreen(off); CGContextSetRGBFillColor( (CGContextRef)off, 0,0,0,0); fl_rectf(0,0,width,height); -- cgit v1.2.3