mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-05 00:49:09 +02:00
Replace SDL_Point and SDL_Rect with Gfx::Point and Gfx::Rect,
synchronization with trunk.
This commit is contained in:
@ -56,7 +56,7 @@ SDL_Surface * BitmapHandler::loadH3PCX(ui8 * pcx, size_t size)
|
||||
ret = SDL_CreateRGBSurface(SDL_SWSURFACE, width, height, 8, 0, 0, 0, 0);
|
||||
|
||||
it = 0xC;
|
||||
for (int i=0; i<height; i++)
|
||||
for (size_t i=0; i<height; ++i)
|
||||
{
|
||||
memcpy((char*)ret->pixels + ret->pitch * i, pcx + it, width);
|
||||
it+= width;
|
||||
@ -88,7 +88,7 @@ SDL_Surface * BitmapHandler::loadH3PCX(ui8 * pcx, size_t size)
|
||||
ret = SDL_CreateRGBSurface(SDL_SWSURFACE, width, height, 24, rmask, gmask, bmask, 0);
|
||||
|
||||
//it == 0xC;
|
||||
for (int i=0; i<height; i++)
|
||||
for (size_t i=0; i<height; ++i)
|
||||
{
|
||||
memcpy((char*)ret->pixels + ret->pitch * i, pcx + it, width*3);
|
||||
it+= width*3;
|
||||
|
Reference in New Issue
Block a user