diff options
| author | Ian MacArthur <imacarthur@gmail.com> | 2012-03-29 13:45:11 +0000 |
|---|---|---|
| committer | Ian MacArthur <imacarthur@gmail.com> | 2012-03-29 13:45:11 +0000 |
| commit | 1e5c19b087da1984a36328bc33a5f7bd7c4627a4 (patch) | |
| tree | 06fdbb405a35c1f8151843f4509d573477ddfae9 | |
| parent | ae4d6338b8c9001640e8799b82b3f672211c9b64 (diff) | |
Maybe fix for the Fl_Pixmap issue building 9310 on mingw/WinXP.
PLEASE check this is OK, I don't have access to test systems here...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9311 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/Fl_Pixmap.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Fl_Pixmap.cxx b/src/Fl_Pixmap.cxx index e85bce89f..7d7fa65c7 100644 --- a/src/Fl_Pixmap.cxx +++ b/src/Fl_Pixmap.cxx @@ -65,7 +65,7 @@ void Fl_Pixmap::draw(int XP, int YP, int WP, int HP, int cx, int cy) { fl_graphics_driver->draw(this, XP, YP, WP, HP, cx, cy); } -static int start(Fl_Pixmap *pxm, int XP, int YP, int WP, int HP, int w, int h, int &cx, int &cy, +static int start(Fl_Pixmap *pxm, int XP, int YP, int WP, int HP, int w, int h, int &cx, int &cy, int &X, int &Y, int &W, int &H) { // ignore empty or bad pixmap data: @@ -126,7 +126,7 @@ int Fl_Pixmap::prepare(int XP, int YP, int WP, int HP, int cx, int cy, fl_end_offscreen(); } return 0; -} +} #ifdef __APPLE__ void Fl_Quartz_Graphics_Driver::draw(Fl_Pixmap *pxm, int XP, int YP, int WP, int HP, int cx, int cy) { @@ -154,7 +154,7 @@ void Fl_GDI_Graphics_Driver::draw(Fl_Pixmap *pxm, int XP, int YP, int WP, int HP } #if FLTK_ABI_VERSION < 10302 -COLORREF Fl_Pixmap::pixmap_bg_color = 0; +UINT Fl_Pixmap::pixmap_bg_color = 0; #endif void Fl_GDI_Printer_Graphics_Driver::draw(Fl_Pixmap *pxm, int XP, int YP, int WP, int HP, int cx, int cy) { @@ -245,7 +245,7 @@ void Fl_Pixmap::copy_data() { int i, // Looping var ncolors, // Number of colors in image chars_per_pixel,// Characters per color - chars_per_line; // Characters per line + chars_per_line; // Characters per line // Figure out how many colors there are, and how big they are... sscanf(data()[0],"%*d%*d%d%d", &ncolors, &chars_per_pixel); @@ -283,7 +283,7 @@ void Fl_Pixmap::copy_data() { // Update pointers... data((const char **)new_data, h() + ncolors + 1); - alloc_data = 1; + alloc_data = 1; } Fl_Image *Fl_Pixmap::copy(int W, int H) { @@ -298,7 +298,7 @@ Fl_Image *Fl_Pixmap::copy(int W, int H) { } if (W <= 0 || H <= 0) return 0; - // OK, need to resize the image data; allocate memory and + // OK, need to resize the image data; allocate memory and char **new_data, // New array for image data **new_row, // Pointer to row in image data *new_ptr, // Pointer into new array @@ -313,7 +313,7 @@ Fl_Image *Fl_Pixmap::copy(int W, int H) { xstep, ystep; // X & Y step increments int ncolors, // Number of colors in image chars_per_pixel,// Characters per color - chars_per_line; // Characters per line + chars_per_line; // Characters per line // Figure out how many colors there are, and how big they are... sscanf(data()[0],"%*d%*d%d%d", &ncolors, &chars_per_pixel); |
