Shut up some Clang warnings in the Enhanced branch
Once again SDL2 using plain ints everywhere causes issues.
This commit is contained in:
parent
26af89d5bb
commit
21d5ba34b0
1 changed files with 2 additions and 2 deletions
|
@ -388,7 +388,7 @@ BOOL ReloadBitmap_Resource(const char *res, Surface_Ids surf_no)
|
|||
|
||||
static SDL_Rect RectToSDLRect(RECT *rect)
|
||||
{
|
||||
SDL_Rect SDLRect = {rect->left, rect->top, rect->right - rect->left, rect->bottom - rect->top};
|
||||
SDL_Rect SDLRect = {(int)rect->left, (int)rect->top, (int)(rect->right - rect->left), (int)(rect->bottom - rect->top)};
|
||||
if (SDLRect.w < 0)
|
||||
SDLRect.w = 0;
|
||||
if (SDLRect.h < 0)
|
||||
|
@ -468,7 +468,7 @@ void PutBitmap4(RECT *rcView, int x, int y, RECT *rect, Surface_Ids surf_no) //
|
|||
void Surface2Surface(int x, int y, RECT *rect, int to, int from)
|
||||
{
|
||||
// Get rects
|
||||
SDL_Rect rcSet = {x * magnification, y * magnification, (rect->right - rect->left) * magnification, (rect->bottom - rect->top) * magnification};
|
||||
SDL_Rect rcSet = {x * magnification, y * magnification, (int)(rect->right - rect->left) * magnification, (int)(rect->bottom - rect->top) * magnification};
|
||||
SDL_Rect frameRect = RectToSDLRectScaled(rect);
|
||||
|
||||
SDL_BlitSurface(surf[from].surface, &frameRect, surf[to].surface, &rcSet);
|
||||
|
|
Loading…
Add table
Reference in a new issue