X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_menu.pas;h=ff6757f659ffcb5a4484f2d45588370a6591fcb1;hb=0f4c0818f5491fc65dd95aae33bfc3c603506305;hp=05abeb44224d3b14fdfbd342068344e0067e0473;hpb=785ff852b9cbd33aaa053913259f15c3163eefc6;p=d2df-sdl.git diff --git a/src/game/g_menu.pas b/src/game/g_menu.pas index 05abeb4..ff6757f 100644 --- a/src/game/g_menu.pas +++ b/src/game/g_menu.pas @@ -1988,7 +1988,7 @@ begin if list <> nil then begin Items := list; - ItemIndex := Length(list) + ItemIndex := -1; (* nothing selected *) end else begin @@ -2004,7 +2004,7 @@ begin TempResScale := Round(r_pixel_scale - 1); with TGUISwitch(menu.GetControl('swResFactor')) do - ItemIndex := Min(TempResScale, gRC_Width div 640 - 1); + ItemIndex := Max(Min(TempResScale, gRC_Width div 640 - 1), 0); end; procedure ProcApplyVideoOptions(); @@ -2782,7 +2782,7 @@ begin FixedLength := 10; Enabled := False; end; - with AddMemo(_lc[I_MENU_MAP_DESCRIPTION], 12, 4) do + with AddMemo(_lc[I_MENU_MAP_DESCRIPTION], 20, 4) do begin Name := 'meMapDescription'; end;