mirror of
https://github.com/fltk/fltk.git
synced 2026-05-23 15:56:10 +08:00
Mac OS: fixed the Fl_Image_Surface class that produced flipped images when
the app draws directly to it, without using Fl_Image_Surface::draw(Fl_Widget*, int, int). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10865 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -42,6 +42,8 @@ Fl_Image_Surface::Fl_Image_Surface(int w, int h) : Fl_Surface_Device(NULL) {
|
||||
helper = new Fl_Quartz_Flipped_Surface_(width, height);
|
||||
driver(helper->driver());
|
||||
CGContextSaveGState(offscreen);
|
||||
CGContextTranslateCTM(offscreen, 0, height);
|
||||
CGContextScaleCTM(offscreen, 1.0f, -1.0f);
|
||||
#elif defined(WIN32)
|
||||
helper = new Fl_GDI_Surface_();
|
||||
driver(helper->driver());
|
||||
|
||||
Reference in New Issue
Block a user