X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_menu.pas;h=d720619bed89ae2a073e34c8481e968ed1a6e871;hb=dea4e2426106ed2b46c3799c7b34a358a4c303aa;hp=5df0bf1c4e849834f638a8653252f38c0cd24cc9;hpb=1d24275aa4b72cac9efc1e14ba377307f89d7728;p=d2df-sdl.git diff --git a/src/game/g_menu.pas b/src/game/g_menu.pas index 5df0bf1..d720619 100644 --- a/src/game/g_menu.pas +++ b/src/game/g_menu.pas @@ -111,10 +111,14 @@ var begin menu := TGUIMenu(g_GUI_GetWindow('OptionsVideoMenu').GetControl('mOptionsVideoMenu')); - if TGUISwitch(menu.GetControl('swBPP')).ItemIndex = 0 then - gBPP := 16 - else - gBPP := 32; + case TGUISwitch(menu.GetControl('swBPP')).ItemIndex of + 0: gBPP := 8; + 1: gBPP := 15; + 2: gBPP := 16; + 3: gBPP := 24; + 4: gBPP := 32; + else gBPP := 32 + end; ovs := gVSync; gVSync := TGUISwitch(menu.GetControl('swVSync')).ItemIndex = 0; @@ -330,10 +334,14 @@ begin menu := TGUIMenu(g_GUI_GetWindow('OptionsVideoMenu').GetControl('mOptionsVideoMenu')); with TGUISwitch(menu.GetControl('swBPP')) do - if gBPP = 16 then - ItemIndex := 0 - else - ItemIndex := 1; + case gBPP of + 8: ItemIndex := 0; + 15: ItemIndex := 1; + 16: ItemIndex := 2; + 24: ItemIndex := 3; + 32: ItemIndex := 4; + else ItemIndex := 4 + end; with TGUISwitch(menu.GetControl('swTextureFilter')) do if gTextureFilter then ItemIndex := 0 else ItemIndex := 1; @@ -2513,7 +2521,10 @@ begin with AddSwitch(_lc[I_MENU_VIDEO_BPP]) do begin Name := 'swBPP'; + AddItem('8'); + AddItem('15'); AddItem('16'); + AddItem('24'); AddItem('32'); end; with AddSwitch(_lc[I_MENU_VIDEO_VSYNC]) do