From 62c95f7391281e599c4dbfc15974044e4be70b69 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sat, 4 Nov 2006 22:00:14 +0000 Subject: [PATCH] update window title when switching display mode --- src/desktop.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/desktop.cpp b/src/desktop.cpp index 7b0c1f6fc..bf4b0ba65 100644 --- a/src/desktop.cpp +++ b/src/desktop.cpp @@ -348,7 +348,9 @@ 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; sp_canvas_item_affine_absolute (SP_CANVAS_ITEM (main), _d2w); // redraw + _widget->setTitle(SP_DOCUMENT_NAME(sp_desktop_document(this))); } void SPDesktop::setDisplayModeOutline() @@ -356,7 +358,9 @@ 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; sp_canvas_item_affine_absolute (SP_CANVAS_ITEM (main), _d2w); // redraw + _widget->setTitle(SP_DOCUMENT_NAME(sp_desktop_document(this))); } void SPDesktop::displayModeToggle() -- 2.30.2