Fixed ALL the bugs: zooming does not crash and fullscreening also does not crash now.

develop
Warmist 2014-05-11 14:19:02 +03:00
parent b6b839c802
commit a088219b3e
2 changed files with 22 additions and 0 deletions

@ -126,6 +126,16 @@ public:
renderer_wrap::resize(w,h);
reinitLightGrid();
}
virtual void set_fullscreen()
{
renderer_wrap::set_fullscreen();
reinitLightGrid();
}
virtual void zoom(df::zoom_commands z)
{
renderer_wrap::zoom(z);
reinitLightGrid();
}
};
class lightingEngine
{

@ -95,10 +95,12 @@ public:
virtual void set_fullscreen() {
copy_to_inner();
parent->set_fullscreen();
copy_from_inner();
};
virtual void zoom(df::zoom_commands z) {
copy_to_inner();
parent->zoom(z);
copy_from_inner();
};
virtual void resize(int32_t w, int32_t h) {
copy_to_inner();
@ -310,6 +312,16 @@ public:
//and then map read
//same stuff for all of them i guess...
};
virtual void set_fullscreen()
{
renderer_wrap::set_fullscreen();
reinitLightGrid();
}
virtual void zoom(df::zoom_commands z)
{
renderer_wrap::zoom(z);
reinitLightGrid();
}
virtual void grid_resize(int32_t w, int32_t h) {
renderer_wrap::grid_resize(w,h);
reinitLightGrid(w,h);