From: Joseph Stalin <granminigun@pm.me>
Date: Wed, 14 Aug 2019 19:56:13 +0000 (+0500)
Subject: Fix single-player endpic drawing
X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=c90881fed6a6189ebf3ae3415660f3adf7819ae7;p=d2df-sdl.git

Fix single-player endpic drawing

It didn't corrected its aspect. Oops.
---

diff --git a/src/game/g_game.pas b/src/game/g_game.pas
index 3e09238..21f25cb 100644
--- a/src/game/g_game.pas
+++ b/src/game/g_game.pas
@@ -4005,13 +4005,8 @@ begin
     if gState = STATE_ENDPIC then
     begin
       ID := DWORD(-1);
-      if not g_Texture_Get('TEXTURE_endpic', ID) then
-        g_Texture_Get(_lc[I_TEXTURE_ENDPIC], ID);
-
-      if ID <> DWORD(-1) then
-        e_DrawSize(ID, 0, 0, 0, False, False, gScreenWidth, gScreenHeight)
-      else
-        e_Clear(GL_COLOR_BUFFER_BIT, 0, 0, 0);
+      if g_Texture_Get('TEXTURE_endpic', ID) then DrawMenuBackground('TEXTURE_endpic')
+      else DrawMenuBackground(_lc[I_TEXTURE_ENDPIC]);
 
       if g_ActiveWindow <> nil then
       begin