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:
Manolo Gouy
2015-09-23 13:51:42 +00:00
parent 2af2d88dce
commit fe61175546
+2
View File
@@ -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());