Skip to content

Commit

Permalink
Fixed WIN32 crash when printing with the test/mandelbrot demo.
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8273 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Jan 13, 2011
1 parent 8999b88 commit 172e368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fl_draw_image_win32.cxx
Expand Up @@ -184,7 +184,7 @@ static void innards(const uchar *buf, int X, int Y, int W, int H,
if (size > buffer_size) {
delete[] buffer;
buffer_size = size;
buffer = new U32[(size+3)/4];
buffer = new U32[(int)(1.02* (size+3)/4)]; // some extra memory needed when printing
}}
bmi.bmiHeader.biHeight = blocking;
static U32* line_buffer;
Expand Down

0 comments on commit 172e368

Please sign in to comment.