Bug #993
Fix uBomb example
Status: | Approved | Start date: | 02/24/2015 | |
---|---|---|---|---|
Priority: | High | Due date: | ||
Assignee: | Miroslav Fidler | % Done: | 0% | |
Category: | CtrlCore | Spent time: | - | |
Target version: | - |
Description
It seems that uBomb works strange (cross is always painted).
Simple fix in file (No diff, beacuse I don't have this file under version control).
History
#1 Updated by Zbigniew Rebacz over 9 years ago
- Category set to CtrlCore
Funny, This is next GTK/Backend serious problem (On X11 fix is not needed & probably on Windows, too).
Line:
w.DrawLine(x * UNIT, y * UNIT, x * UNIT + UNIT - 1, y * UNIT + UNIT - 1, 1, cross);
When cross = Null, it paints line. In X11 implementation it paints nothing. cross has got Color type.
#2 Updated by Zbigniew Rebacz over 9 years ago
- When cross equals Null, it paints black line. In X11 implementation it paints nothing. cross has got Color type. It means that somewhere "IsNullInstance()" isn't check.
#3 Updated by Zbigniew Rebacz over 9 years ago
- File deleted (
main.cpp)
#4 Updated by Zbigniew Rebacz over 9 years ago
- File main.cpp added
#5 Updated by Zbigniew Rebacz over 9 years ago
In Line 152 there is a clue.
#6 Updated by Zbigniew Rebacz over 9 years ago
- Status changed from Patch ready to New
Ups, It is definitely line 115.
#7 Updated by Zbigniew Rebacz over 9 years ago
- File DrawLineOpGtkFix.diff added
- Status changed from New to Patch ready
I publish GTK Fix. Can you check that "IsNull(color)" is checked in evry main drawing function in GTK?
#8 Updated by Miroslav Fidler over 9 years ago
- Status changed from Patch ready to Approved