summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/clipboard.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/clipboard.cxx b/examples/clipboard.cxx
index c5ed99836..5859e5c58 100644
--- a/examples/clipboard.cxx
+++ b/examples/clipboard.cxx
@@ -129,9 +129,7 @@ void clip_callback(int source, void *data) { // called after clipboard was chang
int main(int argc, char **argv)
{
-#if !(defined(__APPLE__) || defined(_WIN32))
- fl_register_images(); // required to allow pasting of images
-#endif
+ fl_register_images(); // required for the X11 platform to allow pasting of images
Fl_Window* win = new Fl_Window(500, 550, "clipboard viewer");
tabs = new clipboard_viewer(0, 0, 500, 500);
Fl_Group *g = new Fl_Group( 5, 30, 490, 460, Fl::clipboard_image); // g will display the image form