Fix in Vector conversion.
No need for a conversion overload. Conversion constructor should cast whatever it's assigning.
This commit is contained in:
parent
19ad7a77ea
commit
ed4e73f0d9
3 changed files with 2 additions and 17 deletions
|
@ -45,7 +45,7 @@ namespace cloonel {
|
|||
if (m_texture) {
|
||||
int width, height;
|
||||
SDL_QueryTexture(m_texture, nullptr, nullptr, &width, &height);
|
||||
m_size = int2(width, height);
|
||||
m_size = static_cast<ushort2>(int2(width, height));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue