got rid of some warnings when compiling in gcc with --wall
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2275 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
0ee0b06eef
commit
4733bc7616
|
@ -787,7 +787,7 @@ static const blitterTable blitTable[] =
|
||||||
{ BLITTER_COLOR, video::ECF_A8R8G8B8, -1, executeBlit_Color_32_to_32 },
|
{ BLITTER_COLOR, video::ECF_A8R8G8B8, -1, executeBlit_Color_32_to_32 },
|
||||||
{ BLITTER_COLOR_ALPHA, video::ECF_A1R5G5B5, -1, executeBlit_ColorAlpha_16_to_16 },
|
{ BLITTER_COLOR_ALPHA, video::ECF_A1R5G5B5, -1, executeBlit_ColorAlpha_16_to_16 },
|
||||||
{ BLITTER_COLOR_ALPHA, video::ECF_A8R8G8B8, -1, executeBlit_ColorAlpha_32_to_32 },
|
{ BLITTER_COLOR_ALPHA, video::ECF_A8R8G8B8, -1, executeBlit_ColorAlpha_32_to_32 },
|
||||||
{ BLITTER_INVALID }
|
{ BLITTER_INVALID, -1, -1, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline tExecuteBlit getBlitter2( eBlitter operation,const video::IImage * dest,const video::IImage * source )
|
static inline tExecuteBlit getBlitter2( eBlitter operation,const video::IImage * dest,const video::IImage * source )
|
||||||
|
|
|
@ -295,7 +295,7 @@ IImage* CImageLoaderRGB::loadImage(io::IReadFile* file) const
|
||||||
// returns true on success
|
// returns true on success
|
||||||
bool CImageLoaderRGB::readHeader(io::IReadFile* file, rgbStruct* rgb) const
|
bool CImageLoaderRGB::readHeader(io::IReadFile* file, rgbStruct* rgb) const
|
||||||
{
|
{
|
||||||
if ( file->read(&rgb->header, sizeof(rgb->header)) < sizeof(rgb->header) )
|
if ( file->read(&rgb->header, sizeof(rgb->header)) < s32(sizeof(rgb->header)) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// test for INTEL or BIG ENDIAN processor
|
// test for INTEL or BIG ENDIAN processor
|
||||||
|
|
|
@ -97,15 +97,15 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
|
|
||||||
static messageMap mouseMap[] =
|
static messageMap mouseMap[] =
|
||||||
{
|
{
|
||||||
0, WM_LBUTTONDOWN,irr::EMIE_LMOUSE_PRESSED_DOWN,
|
{0, WM_LBUTTONDOWN, irr::EMIE_LMOUSE_PRESSED_DOWN},
|
||||||
1, WM_LBUTTONUP,irr::EMIE_LMOUSE_LEFT_UP,
|
{1, WM_LBUTTONUP, irr::EMIE_LMOUSE_LEFT_UP},
|
||||||
0, WM_RBUTTONDOWN,irr::EMIE_RMOUSE_PRESSED_DOWN,
|
{0, WM_RBUTTONDOWN, irr::EMIE_RMOUSE_PRESSED_DOWN},
|
||||||
1, WM_RBUTTONUP,irr::EMIE_RMOUSE_LEFT_UP,
|
{1, WM_RBUTTONUP, irr::EMIE_RMOUSE_LEFT_UP},
|
||||||
0, WM_MBUTTONDOWN, irr::EMIE_MMOUSE_PRESSED_DOWN,
|
{0, WM_MBUTTONDOWN, irr::EMIE_MMOUSE_PRESSED_DOWN},
|
||||||
1, WM_MBUTTONUP,irr::EMIE_MMOUSE_LEFT_UP,
|
{1, WM_MBUTTONUP, irr::EMIE_MMOUSE_LEFT_UP},
|
||||||
2, WM_MOUSEMOVE,irr::EMIE_MOUSE_MOVED,
|
{2, WM_MOUSEMOVE, irr::EMIE_MOUSE_MOVED},
|
||||||
3, WM_MOUSEWHEEL,irr::EMIE_MOUSE_WHEEL,
|
{3, WM_MOUSEWHEEL, irr::EMIE_MOUSE_WHEEL},
|
||||||
-1,0,0
|
{-1, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
// handle grouped events
|
// handle grouped events
|
||||||
|
|
Loading…
Reference in New Issue