Search
Sunday, 21st of May 2017, 15:28:56 UTC
17:33:39
edgar-rft
beach: we *all* are here only temporarily...
2:25:07
christiansen`
** NICK christiansen
3:00:47
beach
Good morning everyone!
3:06:48
slyrus
so I have most of a proper CLX backend done
3:07:01
slyrus
the only problem is what to do about the negative areas
3:07:09
slyrus
turns out you had done most of the heavy lifting
3:07:16
beach
What do you mean by a "proper" CLX backend?
3:07:28
slyrus
not using mcclim-render but xlib directly
3:07:41
beach
Ah, the one that uses only the core protocol?
3:08:05
beach
Or it also uses xrender extension?
3:08:06
slyrus
I guess. just xlib:draw-lines
3:08:38
slyrus
I don't think that uses xrender, but that damn word gets used in so many contexts, I have no idea :)
3:08:59
slyrus
I'll commit and you can take a look and let me know :)
3:09:11
beach
I can certainly do that.
3:09:34
slyrus
but we should add some alpha channel stuff so we don't blow away the negative areas
3:10:00
beach
Alpha channels are not in core X11 I think.
3:10:30
beach
Maybe I remember that wrong.
3:15:41
beach
I think I am right. Alpha channels are mentioned in the documentation of CLX for the first time in the chapter on the XRENDER extension.
3:16:52
slyrus
ah, ok. do we use the XRENDER extension?
3:18:02
slyrus
https://github.com/slyrus/McCLIM/tree/bezier-clx-draw
3:18:08
beach
Yes, the default CLX backend uses TrueType font rendering which uses the XRENDER extension.
3:19:31
beach
For some reason, when you show me URLs like that, they only lead me to the top-level directory and I don't know where to go next.
3:19:53
beach
Maybe a GitHub problem.
3:20:14
beach
Oh, it's the name of a branch.
3:22:08
slyrus
just click on commits to see what I've changed
3:22:11
slyrus
https://github.com/slyrus/McCLIM/commits/bezier-clx-draw
3:22:20
slyrus
I haven't bothered with a pull request yet
3:22:37
slyrus
here's the actual commit: https://github.com/slyrus/McCLIM/commit/7e3df868e0bde0b7d04676ad9b5f1af437121e43
3:22:56
beach
Yeah, I see it. Thanks.
3:24:25
beach
xlib:draw-lines is part of the core protocol, so you are not using the XRENDER extension, and with that technique, you won't get any transparency or anti-aliasing.
3:24:50
beach
But it should be faster than using mcclim-render.
3:25:33
slyrus
yes, so is not using XRENDER a bug or a feature? :)
3:25:55
beach
Give me a minute or two to explain...
3:26:50
beach
Since XRENDER is an extension, one theory says that it is valuable to have a backend that only uses the core X11 protocol. This backend would not have any transparency or anti-aliasing, but it would work on every X11 server...
3:27:22
beach
And that was my thinking with the X11 core backend...
3:27:55
beach
That's additional work for us, and the probability of someone using a server without that extension is very small.
3:28:21
beach
So unless the specific code for that backend is small, it is not worth the effort.
Monday, 22nd of May 2017, 3:28:56 UTC