Implement fixed aspect ratio
This commit is contained in:
parent
7a6c05bba0
commit
f00136c489
6 changed files with 53 additions and 16 deletions
src
|
@ -618,12 +618,14 @@ int Input::dir8Value()
|
|||
|
||||
int Input::mouseX()
|
||||
{
|
||||
return EventThread::mouseState.x * gState->rtData().sizeResoRatio.x;
|
||||
RGSSThreadData &rtData = gState->rtData();
|
||||
return (EventThread::mouseState.x - rtData.screenOffset.x) * rtData.sizeResoRatio.x;
|
||||
}
|
||||
|
||||
int Input::mouseY()
|
||||
{
|
||||
return EventThread::mouseState.y * gState->rtData().sizeResoRatio.y;
|
||||
RGSSThreadData &rtData = gState->rtData();
|
||||
return (EventThread::mouseState.y - rtData.screenOffset.y) * rtData.sizeResoRatio.y;
|
||||
}
|
||||
|
||||
Input::~Input()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue