From 50ee3bcd66c4baa6bb3388f5b955d726bfc6bdd8 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 11 Feb 2016 12:02:36 +0000 Subject: Mark places that need to be refactored with // PORTME: Searching for __APPLE, WIN32 or X11 did give me many false results. I instead marked most ifdef's that I would like to get rid of with the text // PORTME:, so they can be easily found by a global search. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11155 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Paged_Device.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Fl_Paged_Device.cxx') diff --git a/src/Fl_Paged_Device.cxx b/src/Fl_Paged_Device.cxx index e4c27e925..ee0939b4f 100644 --- a/src/Fl_Paged_Device.cxx +++ b/src/Fl_Paged_Device.cxx @@ -141,7 +141,7 @@ void Fl_Paged_Device::print_window_part(Fl_Window *win, int x, int y, int w, int win->make_current(); uchar *image_data; image_data = fl_read_image(NULL, x, y, w, h); -#ifdef __APPLE__ +#ifdef __APPLE__ // PORTME: platform paged device Fl_X::q_release_context(); // matches make_current() call above #endif if (save_front != win) save_front->show(); @@ -305,11 +305,11 @@ void Fl_Paged_Device::draw_decorated_window(Fl_Window *win, int x_offset, int y_ int wsides = left ? left->w() : 0; int toph = top ? top->h() : 0; if (top) { -#ifdef __APPLE__ +#ifdef __APPLE__ // PORTME: platform paged device top->draw(x_offset, y_offset); // draw with transparency #else fl_draw_image(top->array, x_offset, y_offset, top->w(), top->h(), top->d()); -#endif // __APPLE__ +#endif // __APPLE__ // PORTME: platform paged device delete top; } if (left) { @@ -327,7 +327,7 @@ void Fl_Paged_Device::draw_decorated_window(Fl_Window *win, int x_offset, int y_ this->print_widget(win, x_offset + wsides, y_offset + toph); } -#if !defined(__APPLE__) // Mac OS version in Fl_Cocoa.mm +#if !defined(__APPLE__) // PORTME: platform paged device // Mac OS version in Fl_Cocoa.mm void Fl_Paged_Device::print_window(Fl_Window *win, int x_offset, int y_offset) { draw_decorated_window(win, x_offset, y_offset); -- cgit v1.2.3