X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fx11.c;h=88deb3f586d64092c772dc186e1a1cec4e0a2b38;hb=342de2ef2eff4f6936541b70d1eabf01f315fa47;hp=4626324fe82bb526c2507b04d2f2b19c9d1a08b5;hpb=c0c5862d9ee59c70412b1c35e558101b109a8ec9;p=rocksndiamonds.git diff --git a/src/libgame/x11.c b/src/libgame/x11.c index 4626324f..88deb3f5 100644 --- a/src/libgame/x11.c +++ b/src/libgame/x11.c @@ -365,13 +365,12 @@ void X11FillRectangle(Bitmap *bitmap, int x, int y, void X11FadeRectangle(Bitmap *bitmap_cross, int x, int y, int width, int height, int fade_mode, int fade_delay, int post_delay) { - /* fading currently not supported -- simply copy target image to screen */ + /* fading currently not supported -- simply copy backbuffer to screen */ if (fade_mode == FADE_MODE_FADE_OUT) X11FillRectangle(window, x, y, width, height, BLACK_PIXEL); else - X11CopyArea(bitmap_cross != NULL ? bitmap_cross : backbuffer, window, - x, y, width, height, 0, 0, BLIT_OPAQUE); + X11CopyArea(backbuffer, window, x, y, width, height, 0, 0, BLIT_OPAQUE); /* as we currently cannot use the fade delay, also do not use post delay */ }