dest.reserve(positions.size());
for (std::vector<geometry::Point<Uint8> >::const_iterator i(positions.begin()), end(positions.end()); i != end; ++i) {
dest.push_back(geometry::Point<U>(
- i->X() * width / 256,
- i->Y() * height / 256
+ i->X() * width / 255,
+ i->Y() * height / 223
));
}
}
// temporary test data
SDL_Surface *bg(IMG_Load("test-data/battle-bg.png"));
PartyLayout monstersLayout;
- monstersLayout.AddPosition(Point<Uint8>(104, 109));
- monstersLayout.AddPosition(Point<Uint8>(140, 118));
- monstersLayout.AddPosition(Point<Uint8>(176, 109));
- monstersLayout.AddPosition(Point<Uint8>(212, 118));
+ monstersLayout.AddPosition(Point<Uint8>(88, 104));
+ monstersLayout.AddPosition(Point<Uint8>(128, 104));
+ monstersLayout.AddPosition(Point<Uint8>(168, 104));
+ monstersLayout.AddPosition(Point<Uint8>(208, 104));
PartyLayout heroesLayout;
heroesLayout.AddPosition(Point<Uint8>(27, 219));
heroesLayout.AddPosition(Point<Uint8>(104, 227));