Skip to content

Commit

Permalink
Fixed ALL the bugs: zooming does not crash and fullscreening also doe…
Browse files Browse the repository at this point in the history
…s not crash now.
  • Loading branch information
warmist committed May 11, 2014
1 parent b6b839c commit a088219
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugins/rendermax/renderer_light.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,16 @@ struct renderer_light : public renderer_wrap {
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
{
Expand Down
12 changes: 12 additions & 0 deletions plugins/rendermax/renderer_opengl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,12 @@ struct renderer_wrap : public renderer {
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();
Expand Down Expand Up @@ -310,6 +312,16 @@ struct renderer_test : public renderer_wrap {
//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);
Expand Down

0 comments on commit a088219

Please sign in to comment.