summaryrefslogtreecommitdiff
path: root/src/gui/button.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-03-19 20:39:12 -0600
committerIra Rice <irarice@gmail.com>2009-03-19 20:39:12 -0600
commit0b076a2dd247cd128599bf24eeba31f372f89585 (patch)
treeaab9ce14737a9862eb8696d3831dbebc34b52cbb /src/gui/button.cpp
parentabffda81e5bab1fbf4870238e803bb5bae9d0df0 (diff)
downloadmana-client-0b076a2dd247cd128599bf24eeba31f372f89585.tar.gz
mana-client-0b076a2dd247cd128599bf24eeba31f372f89585.tar.bz2
mana-client-0b076a2dd247cd128599bf24eeba31f372f89585.tar.xz
mana-client-0b076a2dd247cd128599bf24eeba31f372f89585.zip
Made the plus and minus buttons in the last commit look more
aesthetically pleasing. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/button.cpp')
-rw-r--r--src/gui/button.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/button.cpp b/src/gui/button.cpp
index 1b206161..16a2853c 100644
--- a/src/gui/button.cpp
+++ b/src/gui/button.cpp
@@ -95,8 +95,10 @@ void Button::init()
{
btn[mode] = resman->getImage(data[mode].file);
a = 0;
- for (y = 0; y < 3; y++) {
- for (x = 0; x < 3; x++) {
+ for (y = 0; y < 3; y++)
+ {
+ for (x = 0; x < 3; x++)
+ {
button[mode].grid[a] = btn[mode]->getSubImage(
data[x].gridX, data[y].gridY,
data[x + 1].gridX - data[x].gridX + 1,