X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=ba6ea4966f37da6e393a3c4dd1a6060cec4f7f24;hb=3d9cd9e6ca46ea73f75a31cdc38785b4e4ae0abc;hp=61d4d5c35cb7768204e8fd199dc3b780fa726b19;hpb=b8c4745f91cc4b85243de0cd9394b49e8cb3506e;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index 61d4d5c3..ba6ea496 100644 --- a/src/init.c +++ b/src/init.c @@ -5164,9 +5164,9 @@ void InitGfxBuffers() if (WIN_XSIZE != win_xsize_last || WIN_YSIZE != win_ysize_last) { - /* may contain content for cross-fading -- only re-create if changed */ - ReCreateBitmap(&bitmap_db_store, WIN_XSIZE, WIN_YSIZE, DEFAULT_DEPTH); - ReCreateBitmap(&bitmap_db_cross, WIN_XSIZE, WIN_YSIZE, DEFAULT_DEPTH); + /* used to temporarily store the backbuffer -- only re-create if changed */ + ReCreateBitmap(&bitmap_db_store_1, WIN_XSIZE, WIN_YSIZE, DEFAULT_DEPTH); + ReCreateBitmap(&bitmap_db_store_2, WIN_XSIZE, WIN_YSIZE, DEFAULT_DEPTH); win_xsize_last = WIN_XSIZE; win_ysize_last = WIN_YSIZE; @@ -5366,7 +5366,7 @@ void InitGfx() void InitGfxBackground() { fieldbuffer = bitmap_db_field; - SetDrawtoField(DRAW_BACKBUFFER); + SetDrawtoField(DRAW_TO_BACKBUFFER); ClearRectangle(backbuffer, 0, 0, WIN_XSIZE, WIN_YSIZE);