projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20030719-1-src
[rocksndiamonds.git]
/
src
/
libgame
/
sdl.c
diff --git
a/src/libgame/sdl.c
b/src/libgame/sdl.c
index 3ea7dc18e3f721eafea8e340016e768ca2a21dcc..95ef6eef6e9d97dcf3f724c45a1febc7af3d2022 100644
(file)
--- a/
src/libgame/sdl.c
+++ b/
src/libgame/sdl.c
@@
-26,9
+26,9
@@
/* functions from SGE library */
inline void sge_Line(SDL_Surface *, Sint16, Sint16, Sint16, Sint16, Uint32);
/* functions from SGE library */
inline void sge_Line(SDL_Surface *, Sint16, Sint16, Sint16, Sint16, Uint32);
-#ifdef PLATFORM_WIN32
+/* #ifdef PLATFORM_WIN32 */
#define FULLSCREEN_BUG
#define FULLSCREEN_BUG
-#endif
+/* #endif */
/* stuff needed to work around SDL/Windows fullscreen drawing bug */
static int fullscreen_width;
/* stuff needed to work around SDL/Windows fullscreen drawing bug */
static int fullscreen_width;
@@
-866,6
+866,14
@@
void sge_LineRGB(SDL_Surface *Surface, Sint16 x1, Sint16 y1, Sint16 x2,
inline void SDLPutPixel(Bitmap *dst_bitmap, int x, int y, Pixel pixel)
{
inline void SDLPutPixel(Bitmap *dst_bitmap, int x, int y, Pixel pixel)
{
+#ifdef FULLSCREEN_BUG
+ if (dst_bitmap == backbuffer || dst_bitmap == window)
+ {
+ x += video_xoffset;
+ y += video_yoffset;
+ }
+#endif
+
sge_PutPixel(dst_bitmap->surface, x, y, pixel);
}
sge_PutPixel(dst_bitmap->surface, x, y, pixel);
}