Skip to content

Commit

Permalink
steamcompmgr: Don't scale cursor if no set cursor scale height
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed Jan 7, 2024
1 parent 8bc99b7 commit 1a008fa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/steamcompmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1864,8 +1864,12 @@ bool MouseCursor::getTexture()
m_hotspotX = image->xhot;
m_hotspotY = image->yhot;

int nDesiredWidth, nDesiredHeight;
GetDesiredSize( nDesiredWidth, nDesiredHeight );
int nDesiredWidth = image->width;
int nDesiredHeight = image->height;
if ( g_nCursorScaleHeight > 0 )
{
GetDesiredSize( nDesiredWidth, nDesiredHeight );
}

uint32_t surfaceWidth;
uint32_t surfaceHeight;
Expand Down

0 comments on commit 1a008fa

Please sign in to comment.