NotifyResChanged() should not be virtual itself.
Make an OnResChanged() virtual method instead.
This commit is contained in:
parent
a87255ef66
commit
72bfb64795
5 changed files with 14 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue