mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-13 18:17:49 -04:00
Merge cursor alignment fixes into master.
--HG-- rename : MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plInputCore/plInputDevice.cpp => Sources/Plasma/PubUtilLib/plInputCore/plInputDevice.cpp rename : MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plPipeline/plDXPipeline.cpp => Sources/Plasma/PubUtilLib/plPipeline/plDXPipeline.cpp rename : MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plPipeline/plPlates.h => Sources/Plasma/PubUtilLib/plPipeline/plPlates.h
This commit is contained in:
@ -39,14 +39,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
|
||||
#include "plPipeline/plPlates.h"
|
||||
#include "plPipeline/plDebugText.h"
|
||||
#include "plGImage/plMipmap.h"
|
||||
|
||||
#include "hsWindows.h"
|
||||
#include "plPipeline.h"
|
||||
|
||||
// base size of the cursor
|
||||
#define CURSOR_SIZE_X 0.0675f
|
||||
#define CURSOR_SIZE_Y 0.09f
|
||||
|
||||
// The resolution that uses the base size of the cursor.
|
||||
// All other resolutions will scale the cursor size to keep the same physical size.
|
||||
#define BASE_WIDTH 1024
|
||||
@ -322,7 +319,7 @@ void plMouseDevice::IUpdateCursorSize()
|
||||
if(fCursor)
|
||||
{
|
||||
// set the size of the cursor based on resolution.
|
||||
fCursor->SetSize( CURSOR_SIZE_X * BASE_WIDTH / fWidth, CURSOR_SIZE_Y * BASE_HEIGHT / fHeight );
|
||||
fCursor->SetSize( 2*fCursor->GetMipmap()->GetWidth()/fWidth, 2*fCursor->GetMipmap()->GetHeight()/fHeight );
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user