Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/game/client/neo/ui/neo_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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();

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
{
Expand Down