summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 628c92c)
raw | patch | inline | side by side (parent: 628c92c)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Thu, 26 Oct 2006 19:40:08 +0000 (19:40 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Thu, 26 Oct 2006 19:40:08 +0000 (19:40 +0000) |
src/desktop.cpp | patch | blob | history |
diff --git a/src/desktop.cpp b/src/desktop.cpp
index c0548a8d2065accd8b7c829e3e04a7b669e31d53..df13bed37361adcf4ad94adb223ac9494ff82da2 100644 (file)
--- a/src/desktop.cpp
+++ b/src/desktop.cpp
SP_CANVAS_ARENA (drawing)->arena->delta = prefs_get_double_attribute ("options.cursortolerance", "value", 1.0); // default is 1 px
- // Start always in normal mode
- SP_CANVAS_ARENA (drawing)->arena->rendermode = RENDERMODE_NORMAL;
- canvas->rendermode = RENDERMODE_NORMAL; // canvas needs that for choosing the best buffer size
+ if (prefs_get_int_attribute("options.startmode", "outline", 0)) {
+ // Start in outline mode
+ SP_CANVAS_ARENA (drawing)->arena->rendermode = RENDERMODE_OUTLINE;
+ canvas->rendermode = RENDERMODE_OUTLINE; // canvas needs that for choosing the best buffer size
+ } else {
+ // Start in normal mode, default
+ SP_CANVAS_ARENA (drawing)->arena->rendermode = RENDERMODE_NORMAL;
+ canvas->rendermode = RENDERMODE_NORMAL; // canvas needs that for choosing the best buffer size
+ }
grid = (SPCanvasGroup *) sp_canvas_item_new (main, SP_TYPE_CANVAS_GROUP, NULL);
guides = (SPCanvasGroup *) sp_canvas_item_new (main, SP_TYPE_CANVAS_GROUP, NULL);