summaryrefslogtreecommitdiff
path: root/src/drivers/Cocoa
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-02-11 00:10:49 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-02-11 00:10:49 +0000
commit9a0be2c8df4c12f70ada36c25f6d64a8be52b0dc (patch)
tree9192ae7870ffe69956e3c279d8e6c3efcae87846 /src/drivers/Cocoa
parent5aa3fc9655560c68ab43573e4afb2d40833d01bf (diff)
Move platform part of Fl::flush()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11153 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Cocoa')
-rw-r--r--src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx6
-rw-r--r--src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx
index 704c3dc72..787a9967a 100644
--- a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx
+++ b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx
@@ -113,6 +113,12 @@ void Fl_Cocoa_Screen_Driver::beep(int type) {
}
+void Fl_Cocoa_Screen_Driver::flush() {
+ if (fl_gc)
+ CGContextFlush(fl_gc);
+}
+
+
//
// End of "$Id$".
//
diff --git a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.h b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.h
index 4c5cf8a7e..00ee70c18 100644
--- a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.h
+++ b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.h
@@ -57,6 +57,8 @@ public:
virtual void screen_work_area(int &X, int &Y, int &W, int &H, int n);
// --- audible output
virtual void beep(int type);
+ // --- global events
+ virtual void flush();
};