Skip to content

Commit

Permalink
Some rendering optimisations
Browse files Browse the repository at this point in the history
  • Loading branch information
aardappel committed Jun 25, 2017
1 parent a6a887f commit 8c8d5e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/grid.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,7 @@ struct Grid {
}
}
};
// FIXME: this should not run under fastrender?
if (view_grid_outer_spacing && cell->cellcolor != 0xFFFFFF) {
if (!sys->fastrender && view_grid_outer_spacing && cell->cellcolor != 0xFFFFFF) {
dc.SetPen(*wxWHITE_PEN);
drawlines();
}
Expand Down
2 changes: 1 addition & 1 deletion src/mycanvas.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct TSCanvas : public wxScrolledWindow {
mousewheelaccum(0),
doc(nullptr),
lastrmbwaswithctrl(false) {
SetBackgroundStyle(wxBG_STYLE_CUSTOM);
SetBackgroundStyle(wxBG_STYLE_PAINT);
SetBackgroundColour(*wxWHITE);
DisableKeyboardScrolling();
// Without this, ScrolledWindow does its own scrolling upon mousewheel events, which
Expand Down
6 changes: 1 addition & 5 deletions src/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,7 @@ struct System {
makebaks(true),
totray(false),
autosave(true),
#ifdef __WXMAC__
fastrender(true),
#else
fastrender(false),
#endif
fastrender(true),
zoomscroll(false),
thinselc(true),
minclose(false),
Expand Down

0 comments on commit 8c8d5e0

Please sign in to comment.