←back to thread

Ancient X11 scaling technology

(flak.tedunangst.com)
283 points todsacerdoti | 1 comments | | HN request time: 0.001s | source
Show context
wmf ◴[] No.44370040[source]
Drawing a circle is kind of cheating. The hard part of scaling is drawing UI elements like raster icons or 1px hairlines to look non-blurry.
replies(5): >>44370438 #>>44370470 #>>44370877 #>>44370924 #>>44372811 #
phkahler ◴[] No.44370438[source]
>> The hard part of scaling is drawing UI elements like raster icons or 1px hairlines to look non-blurry.

And doing so actually using X not OpenGL.

replies(2): >>44372644 #>>44373467 #
kelnos ◴[] No.44373467[source]
Toolkits don't use X to do much (if any) drawing these days. They all use something like cairo or skia or -- yes -- OpenGL to render offscreen, and then upload to X for display (or in the case of OpenGL, they can also do direct rendering).
replies(2): >>44374386 #>>44381018 #
1. sprash ◴[] No.44374386[source]
If you use Cairo on X11 rendering automatically happens with the XRender extension. This is a rather efficient wire protocol that supports sub-pixel coordinates, transparency, gradients and more. No off-screen rendering required. (Some of the older gtk2 theme engines worked that way and allowed beautiful UIs with fast remote capabilities.)