From: DeaDDooMER Date: Wed, 15 Feb 2023 18:43:43 +0000 (+0300) Subject: gl: fix text fields X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=3c17c37b743c76a8b81b985e20723df42fd1b84c;p=d2df-sdl.git gl: fix text fields --- diff --git a/src/game/renders/opengl/r_gui.pas b/src/game/renders/opengl/r_gui.pas index 37fb217..3e35ac9 100644 --- a/src/game/renders/opengl/r_gui.pas +++ b/src/game/renders/opengl/r_gui.pas @@ -258,7 +258,7 @@ implementation var w, h: Integer; r, g, b: Byte; f: TGLFont; begin r_Draw_Texture(EditLeft, ctrl.X, ctrl.Y, EditLeft.width, EditLeft.height, false, 255, 255, 255, 255, false); - r_Draw_TextureRepeat(EditMiddle, ctrl.X + 8, ctrl.Y, 8 + (ctrl.Width - 1) * 16, EditMiddle.height, false, 255, 255, 255, 255, false); + r_Draw_TextureRepeat(EditMiddle, ctrl.X + 8, ctrl.Y, 8 + ctrl.Width * 16, EditMiddle.height, false, 255, 255, 255, 255, false); r_Draw_Texture(EditRight, ctrl.X + 8 + ctrl.Width * 16, ctrl.Y, EditRight.width, EditRight.height, false, 255, 255, 255, 255, false); r := ctrl.Color.R; g := ctrl.Color.G;