diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2016-02-13 12:57:00 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2016-02-13 12:57:00 +0000 |
| commit | 5d1df0e789c794b8040c5db0d84b03ae2b42fd8d (patch) | |
| tree | 4e99ebb978d30bf6c7138181489dd37ce435c310 /src/fl_read_image.cxx | |
| parent | 8deac1e6baf7a016aabd3b6cb5ccffd7f09263cd (diff) | |
Details on PORTME items. Move fl_parse_color() to screen drivers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11163 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_read_image.cxx')
| -rw-r--r-- | src/fl_read_image.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fl_read_image.cxx b/src/fl_read_image.cxx index 9c2fb7d42..3a4d8ede3 100644 --- a/src/fl_read_image.cxx +++ b/src/fl_read_image.cxx @@ -25,14 +25,14 @@ # include <stdio.h> #endif // DEBUG -#if defined(WIN32) || defined(__APPLE__) // PORTME: platform screenshots +#if defined(WIN32) || defined(__APPLE__) // PORTME: Fl_Screen_Driver - platform screenshots #elif defined(FL_PORTING) # pragma message "FL_PORTING: implement code to read RGB data from screen" static uchar *read_win_rectangle(uchar *p, int X, int Y, int w, int h, int alpha) { } #else #endif -#if defined(__APPLE__) // PORTME: platform screenshots +#if defined(__APPLE__) // PORTME: Fl_Screen_Driver - platform screenshots # include "fl_read_image_mac.cxx" #else # include <FL/Fl_RGB_Image.H> @@ -108,7 +108,7 @@ static Fl_RGB_Image *traverse_to_gl_subwindows(Fl_Group *g, uchar *p, int x, int if (full_img) g->as_window()->make_current(); uchar *image_data; int alloc_img = (full_img != NULL || p == NULL); // false means use p, don't alloc new memory for image -#ifdef __APPLE_CC__ // PORTME: platform screenshots +#ifdef __APPLE_CC__ // PORTME: Fl_Screen_Driver - platform screenshots // on Darwin + X11, read_win_rectangle() sometimes returns NULL when there are subwindows do image_data = read_win_rectangle( (alloc_img ? NULL : p), x, y, w, h, alpha); while (!image_data); #else @@ -638,7 +638,7 @@ static uchar *read_win_rectangle(uchar *p, int X, int Y, int w, int h, int alpha #endif // !WIN32 -#endif // !__APPLE__ // PORTME: platform screenshots +#endif // !__APPLE__ // PORTME: Fl_Screen_Driver - platform screenshots // // End of "$Id$". |
