============== Draw ForceFullScreen is used by the editor ============== */
| 1209 | ============== |
| 1210 | */ |
| 1211 | void idConsoleLocal::Draw( bool forceFullScreen ) { |
| 1212 | float y = 0.0f; |
| 1213 | |
| 1214 | if ( !charSetShader ) { |
| 1215 | return; |
| 1216 | } |
| 1217 | |
| 1218 | if ( forceFullScreen ) { |
| 1219 | // if we are forced full screen because of a disconnect, |
| 1220 | // we want the console closed when we go back to a session state |
| 1221 | Close(); |
| 1222 | // we are however catching keyboard input |
| 1223 | keyCatching = true; |
| 1224 | } |
| 1225 | |
| 1226 | Scroll(); |
| 1227 | |
| 1228 | UpdateDisplayFraction(); |
| 1229 | |
| 1230 | if ( forceFullScreen ) { |
| 1231 | DrawSolidConsole( 1.0f ); |
| 1232 | } else if ( displayFrac ) { |
| 1233 | DrawSolidConsole( displayFrac ); |
| 1234 | } else { |
| 1235 | // only draw the notify lines if the developer cvar is set, |
| 1236 | // or we are a debug build |
| 1237 | if ( !con_noPrint.GetBool() ) { |
| 1238 | DrawNotify(); |
| 1239 | } |
| 1240 | } |
| 1241 | |
| 1242 | if ( com_showFPS.GetBool() ) { |
| 1243 | y = SCR_DrawFPS( 0 ); |
| 1244 | } |
| 1245 | |
| 1246 | if ( com_showMemoryUsage.GetBool() ) { |
| 1247 | y = SCR_DrawMemoryUsage( y ); |
| 1248 | } |
| 1249 | |
| 1250 | if ( com_showAsyncStats.GetBool() ) { |
| 1251 | y = SCR_DrawAsyncStats( y ); |
| 1252 | } |
| 1253 | |
| 1254 | if ( com_showSoundDecoders.GetBool() ) { |
| 1255 | y = SCR_DrawSoundDecoders( y ); |
| 1256 | } |
| 1257 | } |
no test coverage detected