index 42102bb75ad4dd8ca1f3e7e04c66b88d0e387e29..774b352d78cc6dba9605802d877a442c63eb9d52 100644 (file)
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;