From f9041cfd23f3f5eff7e56f2960c7a571bb3c4607 Mon Sep 17 00:00:00 2001 From: Joseph Stalin Date: Sat, 30 Nov 2019 19:39:39 +0500 Subject: [PATCH] Darken everything beyond map borders Also finally "fixed" editor options form. Yay. --- src/editor/f_options.lfm | 12 ++++++------ src/editor/g_map.pas | 28 ++++++++++++++-------------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/editor/f_options.lfm b/src/editor/f_options.lfm index c6e3e9b..f82ccf8 100644 --- a/src/editor/f_options.lfm +++ b/src/editor/f_options.lfm @@ -1,12 +1,12 @@ object OptionsForm: TOptionsForm Left = 202 - Height = 300 + Height = 310 Top = 174 Width = 435 BorderIcons = [biSystemMenu] BorderStyle = bsSingle Caption = 'Настройки редактора' - ClientHeight = 285 + ClientHeight = 310 ClientWidth = 435 Color = clBtnFace Font.Color = clWindowText @@ -17,10 +17,10 @@ object OptionsForm: TOptionsForm LCLVersion = '1.8.4.0' object GroupBox1: TGroupBox Left = 8 - Height = 248 + Height = 272 Top = 0 Width = 425 - ClientHeight = 246 + ClientHeight = 272 ClientWidth = 423 TabOrder = 0 object sDotColor: TShape @@ -298,7 +298,7 @@ object OptionsForm: TOptionsForm object bOK: TButton Left = 262 Height = 25 - Top = 256 + Top = 280 Width = 75 Caption = 'ОК' Default = True @@ -308,7 +308,7 @@ object OptionsForm: TOptionsForm object bCancel: TButton Left = 358 Height = 25 - Top = 256 + Top = 280 Width = 75 Cancel = True Caption = 'Отмена' diff --git a/src/editor/g_map.pas b/src/editor/g_map.pas index 2f1435c..6c6f191 100644 --- a/src/editor/g_map.pas +++ b/src/editor/g_map.pas @@ -2720,25 +2720,25 @@ begin // Границы карты: if PreviewMode = 0 then begin - e_DrawFillQuad(-32+MapOffset.X, - -32+MapOffset.Y, - gMapInfo.Width+31+MapOffset.X, - -1+MapOffset.Y, + e_DrawFillQuad(0, + 0, + MainForm.RenderPanel.Width, + -1 + MapOffset.Y, drEdge[0], drEdge[1], drEdge[2], drEdge[3], B_NONE); // Top - e_DrawFillQuad(-32+MapOffset.X, - gMapInfo.Height+MapOffset.Y, - gMapInfo.Width+31+MapOffset.X, - gMapInfo.Height+31+MapOffset.Y, + e_DrawFillQuad(0, + gMapInfo.Height + MapOffset.Y, + MainForm.RenderPanel.Width, + MainForm.RenderPanel.Height, drEdge[0], drEdge[1], drEdge[2], drEdge[3], B_NONE); // Bottom - e_DrawFillQuad(-32+MapOffset.X, + e_DrawFillQuad(0, MapOffset.Y, - -1+MapOffset.X, - gMapInfo.Height+MapOffset.Y-1, + -1 + MapOffset.X, + gMapInfo.Height + MapOffset.Y - 1, drEdge[0], drEdge[1], drEdge[2], drEdge[3], B_NONE); // Left - e_DrawFillQuad(gMapInfo.Width+MapOffset.X, + e_DrawFillQuad(gMapInfo.Width + MapOffset.X, MapOffset.Y, - gMapInfo.Width+31+MapOffset.X, - gMapInfo.Height+MapOffset.Y-1, + MainForm.RenderPanel.Width, + gMapInfo.Height + MapOffset.Y - 1, drEdge[0], drEdge[1], drEdge[2], drEdge[3], B_NONE); // Right end; end; -- 2.29.2