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_Window_shape.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_Window_shape.cxx')
| -rw-r--r-- | src/Fl_Window_shape.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Fl_Window_shape.cxx b/src/Fl_Window_shape.cxx index f4e72009a..4e71197f3 100644 --- a/src/Fl_Window_shape.cxx +++ b/src/Fl_Window_shape.cxx @@ -24,7 +24,7 @@ #include <FL/Fl_Pixmap.H> #include <string.h> -#if defined(WIN32) || defined(__APPLE__) // PORTME: platform window driver +#if defined(WIN32) || defined(__APPLE__) // PORTME: Fl_Window_Driver - platform window driver #elif defined(FL_PORTING) # pragma message "FL_PORTING: add code to implement arbitrarily shaped windows" #else @@ -32,7 +32,7 @@ #ifdef WIN32 # include <malloc.h> // needed for VisualC2010 -#elif !defined(__APPLE__) // PORTME: platform window driver +#elif !defined(__APPLE__) // PORTME: Fl_Window_Driver - platform window driver #include <config.h> #if HAVE_DLFCN_H #include <dlfcn.h> @@ -42,7 +42,7 @@ #endif -#if defined(__APPLE__) // PORTME: platform window driver +#if defined(__APPLE__) // PORTME: Fl_Window_Driver - platform window driver static void MyProviderReleaseData (void *info, const void *data, size_t size) { delete[] (uchar*)data; @@ -175,12 +175,12 @@ void Fl_Window::combine_mask() } #endif // !FL_DOXYGEN -#endif // __APPLE__ // PORTME: platform window driver +#endif // __APPLE__ // PORTME: Fl_Window_Driver - platform window driver void Fl_Window::shape_bitmap_(Fl_Image* b) { shape_data_->shape_ = b; -#if defined(__APPLE__) // PORTME: platform window driver +#if defined(__APPLE__) // PORTME: Fl_Window_Driver - platform window driver if (b) { // complement mask bits and perform bitwise inversion of all bytes and also reverse top and bottom int bytes_per_row = (b->w() + 7)/8; @@ -201,7 +201,7 @@ void Fl_Window::shape_bitmap_(Fl_Image* b) { } -#if defined(__APPLE__) // on the mac, use an 8-bit mask // PORTME: platform window driver +#if defined(__APPLE__) // on the mac, use an 8-bit mask // PORTME: Fl_Window_Driver - platform window driver /* the image can be of any depth offset gives the byte offset from the pixel start to the byte used to construct the shape */ @@ -325,7 +325,7 @@ void Fl_Window::shape_pixmap_(Fl_Image* pixmap) { void Fl_Window::shape(const Fl_Image* img) { if (shape_data_) { if (shape_data_->todelete_) { delete shape_data_->todelete_; } -#if defined(__APPLE__) // PORTME: platform window driver +#if defined(__APPLE__) // PORTME: Fl_Window_Driver - platform window driver if (shape_data_->mask) { CGImageRelease(shape_data_->mask); } #endif } @@ -391,7 +391,7 @@ void Fl_Window::draw() { } draw_children(); -#ifdef __APPLE_QUARTZ__ // PORTME: platform window driver +#ifdef __APPLE_QUARTZ__ // PORTME: Fl_Window_Driver - platform window driver // on OS X, windows have no frame. Before OS X 10.7, to resize a window, we drag the lower right // corner. This code draws a little ribbed triangle for dragging. if (fl_mac_os_version < 100700 && fl_gc && !parent() && resizable() && |
