Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
eeed03b1
Commit
eeed03b1
authored
Feb 01, 2015
by
Gavin Bisesi
Browse files
Merge pull request #656 from poixen/view_size_fix
Fixed pile view bug
parents
6d4716b3
42c4f4a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/zoneviewzone.cpp
View file @
eeed03b1
...
@@ -118,7 +118,6 @@ void ZoneViewZone::reorganizeCards()
...
@@ -118,7 +118,6 @@ void ZoneViewZone::reorganizeCards()
typeRow
++
;
// add below current card
typeRow
++
;
// add below current card
else
{
// if no match then move card to next column
else
{
// if no match then move card to next column
typeColumn
++
;
typeColumn
++
;
longestRow
=
qMax
(
typeRow
,
longestRow
);
typeRow
=
0
;
typeRow
=
0
;
}
}
}
}
...
@@ -128,6 +127,7 @@ void ZoneViewZone::reorganizeCards()
...
@@ -128,6 +127,7 @@ void ZoneViewZone::reorganizeCards()
qreal
y
=
typeRow
*
CARD_HEIGHT
/
3
;
qreal
y
=
typeRow
*
CARD_HEIGHT
/
3
;
c
->
setPos
(
x
+
5
,
y
+
5
);
c
->
setPos
(
x
+
5
,
y
+
5
);
c
->
setRealZValue
(
i
);
c
->
setRealZValue
(
i
);
longestRow
=
qMax
(
typeRow
,
longestRow
);
}
}
}
else
{
}
else
{
for
(
int
i
=
0
;
i
<
cardCount
;
i
++
)
{
for
(
int
i
=
0
;
i
<
cardCount
;
i
++
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment