X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Frenders%2Fopengl%2Fr_common.pas;h=774b352d78cc6dba9605802d877a442c63eb9d52;hb=656407d4bcc9419011375f19ad756d9ab7254f89;hp=42102bb75ad4dd8ca1f3e7e04c66b88d0e387e29;hpb=b6da48aa0bb1a872045a8339a4cd760652f8cc96;p=d2df-sdl.git diff --git a/src/game/renders/opengl/r_common.pas b/src/game/renders/opengl/r_common.pas index 42102bb..774b352 100644 --- a/src/game/renders/opengl/r_common.pas +++ b/src/game/renders/opengl/r_common.pas @@ -366,14 +366,17 @@ implementation end; procedure r_Common_DrawBackgroundImage (img: TGLTexture); - var fw, w, h: LongInt; + var fw, w, h: LongInt; OldFilter: Boolean; begin if img <> nil then begin img := BackgroundTexture.id; + OldFilter := img.filter; + r_Draw_SetFilter(img, gTextureFilter); if img.width = img.height then fw := img.width * 4 div 3 else fw := img.width; // fix aspect 4:3 r_Common_CalcAspect(fw, img.height, gScreenWidth, gScreenHeight, false, w, h); r_Draw_Texture(img, gScreenWidth div 2 - w div 2, 0, w, h, false, 255, 255, 255, 255, false); + r_Draw_SetFilter(img, OldFilter); end end;