diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2015-06-15 13:41:07 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2015-06-15 13:41:07 +0000 |
| commit | 5283617e6820f570132ae1978dce0fc32e7dbb1d (patch) | |
| tree | 999a2bd17693aeddc4cebaff63e151310f7653d0 /src/Fl_Pixmap.cxx | |
| parent | 1ae60108b71bdac5ab5de5b23c5c25f3f07f3864 (diff) | |
Fix documentation and make platform specific code better distinguishable.
This commit doesn't change any code (comments only).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10753 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Pixmap.cxx')
| -rw-r--r-- | src/Fl_Pixmap.cxx | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/src/Fl_Pixmap.cxx b/src/Fl_Pixmap.cxx index 8064979dd..62198cc97 100644 --- a/src/Fl_Pixmap.cxx +++ b/src/Fl_Pixmap.cxx @@ -3,7 +3,7 @@ // // Pixmap drawing code for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2012 by Bill Spitzak and others. +// Copyright 1998-2015 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -128,14 +128,20 @@ int Fl_Pixmap::prepare(int XP, int YP, int WP, int HP, int &cx, int &cy, return 0; } -#ifdef __APPLE__ +//------------------------------------------------------------------------------ +#ifdef __APPLE__ // Apple, Mac OS X +//------------------------------------------------------------------------------ + void Fl_Quartz_Graphics_Driver::draw(Fl_Pixmap *pxm, int XP, int YP, int WP, int HP, int cx, int cy) { int X, Y, W, H; if (pxm->prepare(XP, YP, WP, HP, cx, cy, X, Y, W, H)) return; copy_offscreen(X, Y, W, H, (Fl_Offscreen)pxm->id_, cx, cy); } -#elif defined(WIN32) +//------------------------------------------------------------------------------ +#elif defined(WIN32) // Windows GDI +//------------------------------------------------------------------------------ + void Fl_GDI_Graphics_Driver::draw(Fl_Pixmap *pxm, int XP, int YP, int WP, int HP, int cx, int cy) { int X, Y, W, H; if (pxm->prepare(XP, YP, WP, HP, cx, cy, X, Y, W, H)) return; @@ -181,7 +187,10 @@ void Fl_GDI_Printer_Graphics_Driver::draw(Fl_Pixmap *pxm, int XP, int YP, int WP } } -#else // Xlib +//------------------------------------------------------------------------------ +#else // X11, Xlib +//------------------------------------------------------------------------------ + void Fl_Xlib_Graphics_Driver::draw(Fl_Pixmap *pxm, int XP, int YP, int WP, int HP, int cx, int cy) { int X, Y, W, H; if (pxm->prepare(XP, YP, WP, HP, cx, cy, X, Y, W, H)) return; @@ -205,10 +214,12 @@ void Fl_Xlib_Graphics_Driver::draw(Fl_Pixmap *pxm, int XP, int YP, int WP, int H } } -#endif +//------------------------------------------------------------------------------ +#endif // (platform-specific) +//------------------------------------------------------------------------------ /** - The destructor free all memory and server resources that are used by + The destructor frees all memory and server resources that are used by the pixmap. */ Fl_Pixmap::~Fl_Pixmap() { |
