X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fclient%2Fhud%2Fpanel%2Fengineinfo.qc;h=ed7966c16ea1431fe0bfcbdeab2f2386f96897cb;hp=ea136a21489abd1c111b457ec27855cd23a673fc;hb=93afc08b09294e6dea4d0c98ce5226fdee9d1c92;hpb=109c5785a22fb4336ac5e91d5f1fa91678582164 diff --git a/qcsrc/client/hud/panel/engineinfo.qc b/qcsrc/client/hud/panel/engineinfo.qc index ea136a2148..ed7966c16e 100644 --- a/qcsrc/client/hud/panel/engineinfo.qc +++ b/qcsrc/client/hud/panel/engineinfo.qc @@ -1,5 +1,9 @@ #include "engineinfo.qh" -// Engine info panel (#13) + +#include +#include + +// Engine info (#13) float prevfps; float prevfps_time; @@ -18,12 +22,16 @@ void HUD_EngineInfo() if(!autocvar_hud_panel_engineinfo) return; } - HUD_Panel_UpdateCvars(); + HUD_Panel_LoadCvars(); vector pos, mySize; pos = panel_pos; mySize = panel_size; - HUD_Panel_DrawBg(1); + if (autocvar_hud_panel_engineinfo_dynamichud) + HUD_Scale_Enable(); + else + HUD_Scale_Disable(); + HUD_Panel_DrawBg(); if(panel_bg_padding) { pos += '1 1 0' * panel_bg_padding;