Commit 39a77ced authored by Manuel Moos's avatar Manuel Moos
Browse files

Handle negative CONSOLE_COLUMNS, too

parent 34f42ae4
Pipeline #189041855 passed with stages
in 25 minutes and 33 seconds
......@@ -94,7 +94,7 @@ void rConsole::Render(){
// the text field has an openGL coordinate with of 1.9; cram the specified number
// of columns in it
rCWIDTH_CON=1.9/(sr_columns ? sr_columns : 78);
rCWIDTH_CON=1.9/((sr_columns > 0) ? sr_columns : 78);
// get corresponding character height
rCHEIGHT_CON=rCWIDTH_CON*W*9/(5*H);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment