From 421363a13258c149bdf976938e7dc8d8438aa9db Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 9 Dec 2009 16:41:08 +0000 Subject: Slightly modified commit of patch #2911414 "MSVC: conversions warnings in common code". svn-id: r46308 --- common/rect.h | 2 +- graphics/cursorman.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/rect.h b/common/rect.h index 38bd2c00af..54b219394c 100644 --- a/common/rect.h +++ b/common/rect.h @@ -198,7 +198,7 @@ struct Rect { else if (right < r.left) right = r.left; } - void clip(int maxw, int maxh) { + void clip(int16 maxw, int16 maxh) { clip(Rect(0, 0, maxw, maxh)); } diff --git a/graphics/cursorman.h b/graphics/cursorman.h index a0f01886b2..b6afa10fa7 100644 --- a/graphics/cursorman.h +++ b/graphics/cursorman.h @@ -175,7 +175,7 @@ private: int _hotspotY; uint32 _keycolor; Graphics::PixelFormat _format; - byte _targetScale; + int _targetScale; uint _size; Cursor(const byte *data, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor = 0xFFFFFFFF, int targetScale = 1, const Graphics::PixelFormat *format = NULL) { -- cgit v1.2.3