
The intersection of two rectangles is guaranteed to be convex. Therefore we do not need a center vertex for the triangle fan, we can simply use the whatever first vertex the intersection polygon has. This reduces the number of triangles, while still painting the exact same area. While at it, emit_vertex() nested function is factored into the for-loop, since that is the only calling site left. Comments are updated to reflect the changes, and some unrelated comment fixes are in repaint_region(). Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com> Cc: Rob Clark <rob.clark@linaro.org>
Weston Weston is the reference implementation of a Wayland compositor, and a useful compositor in its own right. Weston has various backends that lets it run on Linux kernel modesetting and evdev input as well as under X11. Weston ships with a few example clients, from simple clients that demonstrate certain aspects of the protocol to more complete clients and a simplistic toolkit. There is also a quite capable terminal emulator (weston-terminal) and an toy/example desktop shell. Finally, weston also provides integration with the Xorg server and can pull X clients into the Wayland desktop and act as a X window manager. Refer to http://wayland.freedesktop.org/building.html for buiding weston and its dependencies.
Description
Languages
C
98.1%
Meson
1.3%
GLSL
0.3%
Shell
0.2%