diff options
| author | Manolo Gouy <Manolo> | 2016-11-03 16:34:13 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-11-03 16:34:13 +0000 |
| commit | 95a9edcb55513a6e4fd13893b16d225a837c499b (patch) | |
| tree | 9b442e5244b7fd87a3252103bcd573212f4563cb /FL | |
| parent | d3f1a3c167954a4c874162ed4986a2235109ac33 (diff) | |
Factorize repeated code across platform-specific graphics drivers and image types
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12077 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Graphics_Driver.H | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/FL/Fl_Graphics_Driver.H b/FL/Fl_Graphics_Driver.H index 3530d4423..02aab1a9a 100644 --- a/FL/Fl_Graphics_Driver.H +++ b/FL/Fl_Graphics_Driver.H @@ -135,6 +135,8 @@ protected: virtual Fl_Bitmask create_bitmask(int w, int h, const uchar *array) {return 0; } /** Support function for image drawing */ virtual void delete_bitmask(Fl_Bitmask bm) {} + int start_image(int XP, int YP, int WP, int HP, int w, int h, int &cx, int &cy, + int &X, int &Y, int &W, int &H); // accessor functions to protected image members static fl_uintptr_t* id(Fl_RGB_Image *rgb) {return &(rgb->id_);} static fl_uintptr_t* id(Fl_Pixmap *pm) {return &(pm->id_);} |
