-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
box_cursor leaves ghost frames on screen #1797
Comments
Yes this is due to the use of CAIRO by GTK, and wxWidgets uses GTK on linux. CAIRO is probably very modern and all that but does not, and will not, include XOR or INVERT graphic writing modes. See #1288. |
Thank you for that hint with gdl -X |
Ah, excellent question! At some point, (gdl 0.9.9 ?) this was possible, but to simplify maintainance of GDL, its now either X11 or wxWidgets. |
incidentally, I've patched GDL to use Invert when XOR (6) is used in procedures like box_cursors. helps a little. |
@GillesDuvert thanks for that but I noticed that at least on my setup the command
has no effect. Actually no value makes any difference while after starting GDL with -X it does: bash$ gdl -X
so after setting set_graphics_function to 6 it nicely makes the triangle disappearing and appearing. When starting gdl without "-X" the triangle does not disappear even setting set_graphics_function to any value between 0 and 15. Maybe only a problem with my setup? |
I have changed the actual operation for '6' only for the wxWidgets 'flavour' of the window. Nothing for X has changed, as I believed the old X11 code to be OK. This to avoid changing the code in box_cursor, that should work "as is" and not with my proposed ugly patch. I took for granted that the device, set_graphics=XX historical command for X11 windows produced excellent results, but as there are no test in our testsuite checking that, regression has occured. (OTOH, such a test will not pass with the default windows, that are wxWidgets.) Your test show that even the X11 flavor do not obey to the set_graphics_function command. |
Maybe I was not clear in my post. With X11 it is working nicely. |
Do you mean that either
|
I was playing only with the set_graphics inside the box_cursor in my previous posts.
Now I downloaded your patch and tried again with a pristine box_cursor and can confirm that with wxWidgets it does not work.
There are still (teh same) ghosts and the set_graphics_function inside the box_cursor (or in my examples) has absolutely no effect whatever value I put there.
This parameter is simply ignored.
Is there anything else I can try?
… On 6. Apr 2024, at 15:21, Giloo ***@***.***> wrote:
Do you mean that either
you have compiled GDL with the 86bd191 <86bd191> patch, and use a pristine box_cursor,
or 2) you have just replaced '6' by '10' in the box_cursor.pro code,
and found that box_cursor is still making clearly visible ghosts?
—
Reply to this email directly, view it on GitHub <#1797 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AOC5K6F4PIUG7FQ5M6KXG3LY4A4JNAVCNFSM6AAAAABFV4O63SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGE2TQOJZHE>.
You are receiving this because you authored the thread.
|
Hm strange, here with the latest patch and the untouched box_cursor.pro I have decent results whatever the background color. Are you on linux? |
Yes, linux, suse tumbleweed, latest with fvwm2
… On 6. Apr 2024, at 18:42, Giloo ***@***.***> wrote:
Hm strange, here with the latest patch and the untouched box_cursor.pro I have decent results whatever the background color. Are you on linux?
—
Reply to this email directly, view it on GitHub <#1797 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AOC5K6FC4KFOCD3FAV7KJX3Y4BT3DAVCNFSM6AAAAABFV4O63SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGIYTEMZRGY>.
You are receiving this because you authored the thread.
|
Hm, this may depend from the version of either [ |
#1802 may be the solution. |
The box_cursor procedure leaves ghost frames on the screen while moving the mouse with a buttom pressed or while resizing the box.
Anybody can confirm if this is on other OSs as well?
The text was updated successfully, but these errors were encountered: