Cast vectors explicitly using vector_cast.
This commit is contained in:
parent
650f8d6de1
commit
68d179975e
11 changed files with 41 additions and 39 deletions
|
@ -47,7 +47,7 @@ namespace cloonel {
|
|||
m_bounceCallback(&DoNothing),
|
||||
m_texture(new Texture(parPath, parMain, false))
|
||||
#if defined(WITH_DEBUG_VISUALS)
|
||||
, m_bottomBarDrawable(parMain, Colour(250, 5, 1), static_cast<short2>(m_bottomBar.From()), static_cast<short2>(m_bottomBar.To()))
|
||||
, m_bottomBarDrawable(parMain, Colour(250, 5, 1), vector_cast<short2>(m_bottomBar.From()), vector_cast<short2>(m_bottomBar.To()))
|
||||
#endif
|
||||
{
|
||||
assert(parMain);
|
||||
|
@ -68,7 +68,7 @@ namespace cloonel {
|
|||
///-------------------------------------------------------------------------
|
||||
void Character::Prepare() {
|
||||
const SDLMain* const sdlmain = m_texture->SDLObject();
|
||||
const int2 screensize(sdlmain->WidthHeight());
|
||||
const int2 screensize(vector_cast<int2>(sdlmain->WidthHeight()));
|
||||
|
||||
m_texture->Reload();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue