git.ucc.asn.au
/
ipdf
/
code.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e6c66a8
)
Don't get Filled and Outline the wrong way around.
author
David Gow
<
[email protected]
>
Wed, 9 Apr 2014 06:54:25 +0000
(14:54 +0800)
committer
David Gow
<
[email protected]
>
Wed, 9 Apr 2014 06:54:25 +0000
(14:54 +0800)
src/view.cpp
patch
|
blob
|
history
diff --git
a/src/view.cpp
b/src/view.cpp
index
f78ec40
..
4425ebe
100644
(file)
--- a/
src/view.cpp
+++ b/
src/view.cpp
@@
-33,7
+33,7
@@
void View::Render()
glBegin(GL_QUADS);
for (unsigned id = 0; id < m_document.ObjectCount(); ++id)
{
glBegin(GL_QUADS);
for (unsigned id = 0; id < m_document.ObjectCount(); ++id)
{
- if (m_document.m_objects.types[id]
=
= RECT_FILLED)
+ if (m_document.m_objects.types[id]
!
= RECT_FILLED)
continue;
Rect obj_bounds = m_document.m_objects.bounds[id];
glVertex2f(Float(obj_bounds.x), Float(obj_bounds.y));
continue;
Rect obj_bounds = m_document.m_objects.bounds[id];
glVertex2f(Float(obj_bounds.x), Float(obj_bounds.y));
@@
-45,7
+45,7
@@
void View::Render()
for (unsigned id = 0; id < m_document.ObjectCount(); ++id)
{
for (unsigned id = 0; id < m_document.ObjectCount(); ++id)
{
- if (m_document.m_objects.types[id]
=
= RECT_OUTLINE)
+ if (m_document.m_objects.types[id]
!
= RECT_OUTLINE)
continue;
Rect obj_bounds = m_document.m_objects.bounds[id];
glBegin(GL_LINE_LOOP);
continue;
Rect obj_bounds = m_document.m_objects.bounds[id];
glBegin(GL_LINE_LOOP);
UCC
git Repository :: git.ucc.asn.au