mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-04 23:17:41 +02:00
Resolve intentionality issues
This commit is contained in:
parent
f3277b7953
commit
5e9f98b15c
@ -672,8 +672,8 @@ void scaleSurfaceFastInternal(SDL_Surface *surf, SDL_Surface *ret)
|
|||||||
for(int x = 0; x < ret->w; x++)
|
for(int x = 0; x < ret->w; x++)
|
||||||
{
|
{
|
||||||
//coordinates we want to calculate
|
//coordinates we want to calculate
|
||||||
int origX = static_cast<int>(floor(factorX * x));
|
auto origX = static_cast<int>(floor(factorX * x));
|
||||||
int origY = static_cast<int>(floor(factorY * y));
|
auto origY = static_cast<int>(floor(factorY * y));
|
||||||
|
|
||||||
// Get pointers to source pixels
|
// Get pointers to source pixels
|
||||||
uint8_t *srcPtr = (uint8_t*)surf->pixels + origY * surf->pitch + origX * bpp;
|
uint8_t *srcPtr = (uint8_t*)surf->pixels + origY * surf->pitch + origX * bpp;
|
||||||
|
@ -141,8 +141,8 @@ void CMapHeader::registerMapStrings()
|
|||||||
VLC->generaltexth->addSubContainer(*this);
|
VLC->generaltexth->addSubContainer(*this);
|
||||||
|
|
||||||
//get supported languages. Assuming that translation containing most strings is the base language
|
//get supported languages. Assuming that translation containing most strings is the base language
|
||||||
std::set<std::string> mapLanguages;
|
std::set<std::string, std::less<>> mapLanguages;
|
||||||
std::set<std::string> mapBaseLanguages;
|
std::set<std::string, std::less<>> mapBaseLanguages;
|
||||||
int maxStrings = 0;
|
int maxStrings = 0;
|
||||||
for(auto & translation : translations.Struct())
|
for(auto & translation : translations.Struct())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user