Bug #993

Fix uBomb example

Added by Zbigniew Rebacz about 9 years ago. Updated about 9 years ago.

Status:ApprovedStart date:02/24/2015
Priority:HighDue date:
Assignee:Miroslav Fidler% Done:

0%

Category:CtrlCoreSpent 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).

main.cpp Magnifier - Contains a hint what is wrong in gtk backend. (4.56 KB) Zbigniew Rebacz, 02/24/2015 01:42 AM

DrawLineOpGtkFix.diff Magnifier (733 Bytes) Zbigniew Rebacz, 02/24/2015 12:26 PM

History

#1 Updated by Zbigniew Rebacz about 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 about 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 about 9 years ago

  • File deleted (main.cpp)

#4 Updated by Zbigniew Rebacz about 9 years ago

#5 Updated by Zbigniew Rebacz about 9 years ago

In Line 152 there is a clue.

#6 Updated by Zbigniew Rebacz about 9 years ago

  • Status changed from Patch ready to New

Ups, It is definitely line 115.

#7 Updated by Zbigniew Rebacz about 9 years ago

I publish GTK Fix. Can you check that "IsNull(color)" is checked in evry main drawing function in GTK?

#8 Updated by Miroslav Fidler about 9 years ago

  • Status changed from Patch ready to Approved

Also available in: Atom PDF