[aseprite] 104/196: Simplify hidden brush preview style

Tobias Hansen thansen at moszumanska.debian.org
Wed Apr 20 18:50:07 UTC 2016


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit b4ce12beb48687b6d861ba59b6e32de76c0b0719
Author: David Capello <davidcapello at gmail.com>
Date:   Thu Mar 24 14:51:57 2016 -0300

    Simplify hidden brush preview style
---
 src/app/ui/editor/brush_preview.cpp | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/src/app/ui/editor/brush_preview.cpp b/src/app/ui/editor/brush_preview.cpp
index 4734155..fe0c35b 100644
--- a/src/app/ui/editor/brush_preview.cpp
+++ b/src/app/ui/editor/brush_preview.cpp
@@ -141,17 +141,8 @@ void BrushPreview::show(const gfx::Point& screenPos)
   bool usePreview = false;
 
   auto brushPreview = pref.editor.brushPreview();
-
-  // If the brush preview is hidden, we step down one level. E.g. If
-  // we have full-brush preview, we move to edges, or if it's edges,
-  // we don't show it at all.
-  if (!m_editor->docPref().show.brushPreview()) {
-    switch (brushPreview) {
-      case app::gen::BrushPreview::NONE: break;
-      case app::gen::BrushPreview::EDGES: brushPreview = app::gen::BrushPreview::NONE; break;
-      case app::gen::BrushPreview::FULL: brushPreview = app::gen::BrushPreview::EDGES; break;
-    }
-  }
+  if (!m_editor->docPref().show.brushPreview())
+    brushPreview = app::gen::BrushPreview::NONE;
 
   switch (brushPreview) {
     case app::gen::BrushPreview::NONE:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list