mirror of
https://github.com/labwc/labwc.git
synced 2026-04-07 08:21:20 -04:00
Initial use of a centralized caching border generator
This commit is contained in:
parent
c37f343377
commit
2a0ff0d5b4
7 changed files with 218 additions and 61 deletions
|
|
@ -66,13 +66,16 @@
|
|||
(WLR_VERSION_NUM >= (((major) << 16) | ((minor) << 8) | (micro)))
|
||||
|
||||
/**
|
||||
* PIXEL () - calculate pixel offset in an array of "bw" columns wide.
|
||||
* PIXEL () - calculate pixel offset in an array
|
||||
*
|
||||
* @param x x-coordinate
|
||||
* @param y y-coordinate
|
||||
* @param size width of the buffer in pixes
|
||||
* Assumes "bw" was defined externally
|
||||
*/
|
||||
|
||||
#define PIXEL(x, y) (bw * y + x)
|
||||
|
||||
#define PIXELSIZED(x, y, size) (size * y + x)
|
||||
|
||||
#endif /* LABWC_MACROS_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue