@@ -213,7 +213,8 @@ options.t_itemname = {
213213 -- modifyGameOption('Video.WindowCentered', true)
214214 modifyGameOption (' Video.ExternalShaders' , {})
215215 modifyGameOption (' Video.WindowScaleMode' , true )
216- modifyGameOption (' Video.KeepAspect' , true )
216+ modifyGameOption (' Video.KeepAspect' , true )
217+ modifyGameOption (' Video.XyTruncate' , true )
217218 modifyGameOption (' Video.EnableModel' , true )
218219 modifyGameOption (' Video.EnableModelShadow' , true )
219220 -- modifyGameOption('Sound.SampleRate', 44100)
@@ -939,6 +940,20 @@ options.t_itemname = {
939940 end
940941 return true
941942 end ,
943+ -- X/Y Trunccate
944+ [' xytruncate' ] = function (t , item , cursorPosY , moveTxt )
945+ if main .f_input (main .t_players , {' $F' , ' $B' , ' pal' , ' s' }) then
946+ sndPlay (motif .files .snd_data , motif .option_info .cursor_move_snd [1 ], motif .option_info .cursor_move_snd [2 ])
947+ if gameOption (' Video.XyTruncate' ) then
948+ modifyGameOption (' Video.XyTruncate' , false )
949+ else
950+ modifyGameOption (' Video.XyTruncate' , true )
951+ end
952+ t .items [item ].vardisplay = options .f_boolDisplay (gameOption (' Video.XyTruncate' ), motif .option_info .menu_valuename_enabled , motif .option_info .menu_valuename_disabled )
953+ options .modified = true
954+ end
955+ return true
956+ end ,
942957 -- Shaders (submenu)
943958 [' shaders' ] = function (t , item , cursorPosY , moveTxt )
944959 if main .f_input (main .t_players , {' $F' , ' $B' , ' pal' , ' s' }) then
@@ -1552,6 +1567,9 @@ options.t_vardisplay = {
15521567 [' windowscalemode' ] = function ()
15531568 return options .f_boolDisplay (gameOption (' Video.WindowScaleMode' ), motif .option_info .menu_valuename_enabled , motif .option_info .menu_valuename_disabled )
15541569 end ,
1570+ [' xytruncate' ] = function ()
1571+ return options .f_boolDisplay (gameOption (' Video.XyTruncate' ), motif .option_info .menu_valuename_enabled , motif .option_info .menu_valuename_disabled )
1572+ end ,
15551573}
15561574
15571575-- Returns setting value rendered alongside menu item name (calls appropriate
0 commit comments