Sam: I have included an attachment source file to demo the bug. The bug
is found in the function DrawBG(). All the demo does is blit a tiled background to
the screen. The file that I have sent currently works ok, if I comment out the lines (128 and
129):
dest.w = w; // and
dest.h = h;
under windows, then the tile function works perfectly fine. Under Linux
(if those lines are commented out) the tile only stretches the first row and leaves the rest of
the screen blank. Hopefully you can try this out…
Works fine here. You should probably initialize the dest rectangle before
the blit, like this:
int DrawBG()
{
int h = bitmap->h;
int w = bitmap->w;
SDL_Rect dest;
int i, j;
Sam: I have included an attachment source file to demo the bug. The
bug
is found in the function DrawBG(). All the demo does is blit a tiled
background to
the screen. The file that I have sent currently works ok, if I comment
out the lines (128 and
129):
dest.w = w; // and
dest.h = h;
under windows, then the tile function works perfectly fine. Under Linux
(if those lines are commented out) the tile only stretches the first row
and leaves the rest of> > the screen blank. Hopefully you can try this out…
Works fine here. You should probably initialize the dest rectangle before
the blit, like this:
int DrawBG()
int h = bitmap->h;
int w = bitmap->w;
SDL_Rect dest;
int i, j;