summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bba71ce)
raw | patch | inline | side by side (parent: bba71ce)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Sun, 11 Mar 2007 04:02:46 +0000 (04:02 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Sun, 11 Mar 2007 04:02:46 +0000 (04:02 +0000) |
src/desktop.cpp | patch | blob | history |
diff --git a/src/desktop.cpp b/src/desktop.cpp
index 471ac2a1949474452e51b546fd7cf973f62d136c..d159fbc78d236df8f3996087c59092ea28bfc74f 100644 (file)
--- a/src/desktop.cpp
+++ b/src/desktop.cpp
void SPDesktop::setDisplayModeNormal()
{
- prefs_set_int_attribute("options.outlinemode", "value", 0);
SP_CANVAS_ARENA (drawing)->arena->rendermode = RENDERMODE_NORMAL;
canvas->rendermode = RENDERMODE_NORMAL; // canvas needs that for choosing the best buffer size
displayMode = RENDERMODE_NORMAL;
void SPDesktop::setDisplayModeOutline()
{
- prefs_set_int_attribute("options.outlinemode", "value", 1);
SP_CANVAS_ARENA (drawing)->arena->rendermode = RENDERMODE_OUTLINE;
canvas->rendermode = RENDERMODE_OUTLINE; // canvas needs that for choosing the best buffer size
displayMode = RENDERMODE_OUTLINE;
void SPDesktop::displayModeToggle()
{
- if (prefs_get_int_attribute("options.outlinemode", "value", prefs_get_int_attribute("options.startmode", "outline", 0)))
+ if (displayMode == RENDERMODE_OUTLINE)
setDisplayModeNormal();
else
setDisplayModeOutline();