From cc615f730851748bd9e90a23901f11bdd13a1c03 Mon Sep 17 00:00:00 2001 From: AdamTadeusz Date: Thu, 15 Jan 2026 16:14:35 +0000 Subject: [PATCH] init --- src/game/client/neo/ui/neo_ui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/client/neo/ui/neo_ui.cpp b/src/game/client/neo/ui/neo_ui.cpp index 151d87517..016279ccf 100644 --- a/src/game/client/neo/ui/neo_ui.cpp +++ b/src/game/client/neo/ui/neo_ui.cpp @@ -1384,6 +1384,7 @@ void RingBox(const wchar_t **wszLabelsList, const int iLabelsSize, int *iIndex) } break; case MODE_MOUSEPRESSED: + case MODE_MOUSEDOUBLEPRESSED: { if (wdgState.bHot) { @@ -1448,8 +1449,6 @@ void Tabs(const wchar_t **wszLabelsList, const int iLabelsSize, int *iIndex, con { case MODE_PAINT: { - int oldX = 0, oldY = 0, oldW, oldH; - vgui::surface()->GetScreenSize(oldW, oldH); vgui::surface()->SetFullscreenViewport(c->rWidgetArea.x0, c->rWidgetArea.y0, c->irWidgetWide, c->irWidgetTall); vgui::surface()->PushFullscreenViewport(); @@ -1490,7 +1489,7 @@ void Tabs(const wchar_t **wszLabelsList, const int iLabelsSize, int *iIndex, con } vgui::surface()->PopFullscreenViewport(); - vgui::surface()->SetFullscreenViewport(oldX, oldY, oldW, oldH); + vgui::surface()->SetFullscreenViewport(0, 0, 0, 0); // Draw the side-hints text // NEO NOTE (nullsystem): F# as 1 is thinner than 3/not monospaced font @@ -1680,6 +1679,7 @@ void Slider(const wchar_t *wszLeftLabel, float *flValue, const float flMin, cons } break; case MODE_MOUSEPRESSED: + case MODE_MOUSEDOUBLEPRESSED: { if (wdgState.bHot) {