|
2010-06-14
, 19:57
|
Posts: 190 |
Thanked: 129 times |
Joined on Mar 2010
@ Bavaria, Germany
|
#2
|
|
2010-06-14
, 20:00
|
|
Posts: 1,366 |
Thanked: 1,185 times |
Joined on Jan 2006
|
#3
|
|
2010-06-14
, 20:36
|
Posts: 52 |
Thanked: 8 times |
Joined on Apr 2010
|
#4
|
The Following User Says Thank You to Jaso333 For This Useful Post: | ||
|
2010-06-14
, 20:39
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#5
|
|
2010-06-14
, 23:12
|
Posts: 341 |
Thanked: 57 times |
Joined on Nov 2009
|
#6
|
|
2010-06-15
, 09:20
|
Posts: 341 |
Thanked: 57 times |
Joined on Nov 2009
|
#7
|
It looks like you update too small a region. Just to try that, update the whole drawing area after drawing all the small lines. If this changes the behaviour, you've found the problem.
|
2010-06-15
, 09:48
|
Posts: 61 |
Thanked: 43 times |
Joined on Aug 2008
|
#8
|
The Following User Says Thank You to harriva For This Useful Post: | ||
|
2010-06-15
, 10:37
|
Posts: 341 |
Thanked: 57 times |
Joined on Nov 2009
|
#9
|
|
2010-06-15
, 10:59
|
|
Posts: 1,296 |
Thanked: 1,773 times |
Joined on Aug 2009
@ Budapest, Hungary
|
#10
|
When I try to do a little optimization by running update after drawing *all* the slanted lines (so that all lines are updated onto the drawing board through a single update() ), the output is ... odd .... That is, immediately after drawing the lines, they lines seem broken (they have vacant patches where the drawing should have happened as well) ... however, if I trigger a redrawing of the form window (say, by changing the size of the form), the broken patches are immediately fixed !! When I run this program on my N900, it gets the initial broken output and stays like that, since I don't know how to enforce a redraw in this case ...
Here is the first 'optimized' code and output (partially correct/incorrect)
Image after slightly re-adjusting the window size:
Here is the second un-optimized code (its output is correct right after drawing, just like in the second picture above):