Nuklear/demo/x11_rawfb
Patrick Rudolph 66946dc3cf nuklear_rawfb: Use pitch in offset calculation
Use the framebuffer pitch to calculate the correct offset.
Fixes garbled rendering on framebuffer that have
pitch != x_resolution * bpp / 8.

The demo application is unaffected as the pitch always aligns with
the x resolution of the window.

Signed-off-by: Patrick Rudolph <siro@das-labor.org>
2018-02-04 17:08:17 +01:00
..
main.c Update demos to new color picker API 2018-01-05 13:09:27 +01:00
Makefile TRAVIS: include demo windows and activate warnings 2018-01-02 08:26:29 +01:00
nuklear_rawfb.h nuklear_rawfb: Use pitch in offset calculation 2018-02-04 17:08:17 +01:00
nuklear_xlib.h Update demos to new color picker API 2018-01-05 13:09:27 +01:00