[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kmines/viranch/qtquick] src/qml: Don't render the sprite if not visible
From: Viranch Mehta <viranch.mehta () gmail ! com>
Date: 2013-04-06 0:57:10
Message-ID: 20130406005710.45BACA6059 () git ! kde ! org
[Download RAW message or body]
Git commit 37542032500c25d1007eb23f59cd99ebcc7e23f0 by Viranch Mehta.
Committed on 06/04/2013 at 02:56.
Pushed by viranch into branch 'viranch/qtquick'.
Don't render the sprite if not visible
M +1 -1 src/qml/CellItem.qml
http://commits.kde.org/kmines/37542032500c25d1007eb23f59cd99ebcc7e23f0
diff --git a/src/qml/CellItem.qml b/src/qml/CellItem.qml
index 2a5985c..33dd91b 100644
--- a/src/qml/CellItem.qml
+++ b/src/qml/CellItem.qml
@@ -82,6 +82,6 @@ CanvasItem {
CanvasItem {
anchors.fill: parent
visible: digit>0 && revealed && !error
- spriteKey: "arabic" + ["One", "Two", "Three", "Four", "Five", "Six=
", "Seven", "Eight"][digit-1]
+ spriteKey: visible ? "arabic" + ["One", "Two", "Three", "Four", "F=
ive", "Six", "Seven", "Eight"][digit-1] : ""
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic