From 8cbe0e5b30865ca7b29c0d3c0bc7f786e02364b6 Mon Sep 17 00:00:00 2001 From: SNMetamorph <25657591+SNMetamorph@users.noreply.github.com> Date: Tue, 8 Nov 2022 04:01:30 +0400 Subject: [PATCH] engine: client: vgui: added VGui_UpdateInternalCursorState function --- engine/client/vgui/vgui_draw.c | 8 ++++---- engine/client/vgui/vgui_draw.h | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/engine/client/vgui/vgui_draw.c b/engine/client/vgui/vgui_draw.c index cd134e24..4d732049 100644 --- a/engine/client/vgui/vgui_draw.c +++ b/engine/client/vgui/vgui_draw.c @@ -51,11 +51,7 @@ void GAME_EXPORT VGUI_GetMousePos( int *_x, int *_y ) void GAME_EXPORT VGUI_CursorSelect( VGUI_DefaultCursor cursor ) { if( s_currentCursor != cursor ) - { Platform_SetCursorType( cursor ); - - s_currentCursor = cursor; - } } byte GAME_EXPORT VGUI_GetColor( int i, int j) @@ -488,6 +484,10 @@ void VGui_RunFrame( void ) //stub } +void VGui_UpdateInternalCursorState( VGUI_DefaultCursor cursorType ) +{ + s_currentCursor = cursorType; +} void *GAME_EXPORT VGui_GetPanel( void ) { diff --git a/engine/client/vgui/vgui_draw.h b/engine/client/vgui/vgui_draw.h index 4119774c..2cdaf1af 100644 --- a/engine/client/vgui/vgui_draw.h +++ b/engine/client/vgui/vgui_draw.h @@ -36,6 +36,7 @@ void VGui_MouseMove( int x, int y ); qboolean VGui_IsActive( void ); void *VGui_GetPanel( void ); void VGui_ReportTextInput( const char *text ); +void VGui_UpdateInternalCursorState( VGUI_DefaultCursor cursorType ); #ifdef __cplusplus } #endif