WINTERMUTE: Fix a few more int->int32's spotted by fuzzie.

This commit is contained in:
Einar Johan Trøan Sømåen 2013-04-20 17:37:19 +02:00
parent 839c16e848
commit 2625f3931a
4 changed files with 6 additions and 6 deletions

View File

@ -71,7 +71,7 @@ public:
bool getViewportOffset(int *offsetX = nullptr, int *offsetY = nullptr);
BaseViewport *_viewport;
BaseFader *_fader;
int _pfPointsNum;
int32 _pfPointsNum;
void pfPointsAdd(int x, int y, int distance);
void pfPointsStart();
bool _initialized;

View File

@ -602,7 +602,7 @@ int BaseGame::getSequence() {
//////////////////////////////////////////////////////////////////////////
void BaseGame::setOffset(int offsetX, int offsetY) {
void BaseGame::setOffset(int32 offsetX, int32 offsetY) {
_offsetX = offsetX;
_offsetY = offsetY;
}
@ -2995,7 +2995,7 @@ bool BaseGame::showCursor() {
//////////////////////////////////////////////////////////////////////////
bool BaseGame::saveGame(int slot, const char *desc, bool quickSave) {
bool BaseGame::saveGame(int32 slot, const char *desc, bool quickSave) {
return SaveLoad::saveGame(slot, desc, quickSave, _gameRef);
}
@ -3840,7 +3840,7 @@ bool BaseGame::isRightDoubleClick() {
}
//////////////////////////////////////////////////////////////////////////
bool BaseGame::isDoubleClick(int buttonIndex) {
bool BaseGame::isDoubleClick(int32 buttonIndex) {
uint32 maxDoubleCLickTime = 500;
int maxMoveX = 4;
int maxMoveY = 4;

View File

@ -358,7 +358,7 @@ bool UITiledImage::saveAsText(BaseDynamicBuffer *buffer, int indent) {
}
//////////////////////////////////////////////////////////////////////////
void UITiledImage::correctSize(int *width, int *height) {
void UITiledImage::correctSize(int32 *width, int32 *height) {
int tileWidth = _middleMiddle.right - _middleMiddle.left;
int tileHeight = _middleMiddle.bottom - _middleMiddle.top;

View File

@ -38,7 +38,7 @@ class BaseSubFrame;
class UITiledImage : public BaseObject {
public:
DECLARE_PERSISTENT(UITiledImage, BaseObject)
void correctSize(int *width, int *height);
void correctSize(int32 *width, int32 *height);
bool loadFile(const char *filename);
bool loadBuffer(byte *buffer, bool complete = true);
virtual bool saveAsText(BaseDynamicBuffer *buffer, int indent) override;