NotifyResChanged() should not be virtual itself.

Make an OnResChanged() virtual method instead.
This commit is contained in:
King_DuckZ 2016-11-09 23:35:19 +01:00
parent a87255ef66
commit 72bfb64795
5 changed files with 14 additions and 5 deletions

View file

@ -111,9 +111,8 @@ namespace cloonel {
///--------------------------------------------------------------------------
///--------------------------------------------------------------------------
void TiledWallpaper::TileCountNotifiable::NotifyResChanged (const SizeRatio& parSize) {
void TiledWallpaper::TileCountNotifiable::OnResChanged (const SizeRatio& parSize) {
std::cout << "Autoregistering" << std::endl;
BaseClass::NotifyResChanged(parSize);
m_tileCount = CountTilesInScreen(vector_cast<ushort2>(parSize.Resolution()), vector_cast<ushort2>(m_tileSize));
#if defined(WITH_DEBUG_VISUALS)
m_screenRes = parSize.Resolution();