Rename 'GlobalState' to 'SharedState' to avoid confusion with GLState

This was particularly nasty with the shorthand macros
'gState' and 'glState'. The former is now 'shState'.
This commit is contained in:
Jonas Kulla 2013-10-09 12:30:33 +02:00
parent 807bee5748
commit cb6f73f7df
32 changed files with 222 additions and 222 deletions

View file

@ -20,7 +20,7 @@
*/
#include "input.h"
#include "globalstate.h"
#include "sharedstate.h"
#include "eventthread.h"
#include "exception.h"
#include "util.h"
@ -552,7 +552,7 @@ Input::Input()
void Input::update()
{
gState->checkShutdown();
shState->checkShutdown();
p->swapBuffers();
p->clearBuffer();
@ -614,13 +614,13 @@ int Input::dir8Value()
int Input::mouseX()
{
RGSSThreadData &rtData = gState->rtData();
RGSSThreadData &rtData = shState->rtData();
return (EventThread::mouseState.x - rtData.screenOffset.x) * rtData.sizeResoRatio.x;
}
int Input::mouseY()
{
RGSSThreadData &rtData = gState->rtData();
RGSSThreadData &rtData = shState->rtData();
return (EventThread::mouseState.y - rtData.screenOffset.y) * rtData.sizeResoRatio.y;
}