File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 16521652 menu.itemname.menuvideo.resolution.back = "Back"
16531653 menu.itemname.menuvideo.fullscreen = "Fullscreen"
16541654 menu.itemname.menuvideo.keepaspect = "Keep Aspect Ratio"
1655- menu.itemname.menuvideo.xytruncate = "X/Y Rounding "
1655+ menu.itemname.menuvideo.xytruncate = "X/Y Truncate "
16561656 menu.itemname.menuvideo.windowscalemode = "Bilinear Filtering"
16571657 menu.itemname.menuvideo.vsync = "VSync"
16581658 menu.itemname.menuvideo.msaa = "MSAA"
Original file line number Diff line number Diff line change @@ -2041,7 +2041,7 @@ function motif.setBaseOptionInfo()
20412041 motif .option_info .menu_itemname_menuvideo_fullscreen = " Fullscreen"
20422042 motif .option_info .menu_itemname_menuvideo_vsync = " VSync"
20432043 motif .option_info .menu_itemname_menuvideo_keepaspect = " Keep Aspect Ratio"
2044- motif .option_info .menu_itemname_menuvideo_xytruncate = " X/Y Rounding "
2044+ motif .option_info .menu_itemname_menuvideo_xytruncate = " X/Y Truncate "
20452045 motif .option_info .menu_itemname_menuvideo_windowscalemode = " Bilinear Filtering"
20462046 motif .option_info .menu_itemname_menuvideo_msaa = " MSAA"
20472047 motif .option_info .menu_itemname_menuvideo_shaders = " Shaders" -- reserved submenu
Original file line number Diff line number Diff line change @@ -409,8 +409,9 @@ func rmInitSub(rp *RenderParams) {
409409 rp .y += rp .rcy
410410
411411 if sys .cfg .Video .XyTruncate {
412- rp .x = float32 (int (rp .x ))
413- rp .y = float32 (int (rp .y ))
412+ // math.Round only accepts float64s, hence the need for conversion
413+ rp .x = float32 (int (math .Round (float64 (rp .x ))))
414+ rp .y = float32 (int (math .Round (float64 (rp .y ))))
414415 }
415416}
416417
You can’t perform that action at this time.
0 commit comments