mirror of
https://github.com/jjsullivan5196/wvkbd.git
synced 2025-03-13 02:42:47 +01:00
border: display around all sides
(not just top and left edges) Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
parent
0cd0d5e1a1
commit
f9bf42129a
@ -453,14 +453,14 @@ kbd_resize(struct kbd *kb, struct layout *layouts, uint8_t layoutcount) {
|
||||
void
|
||||
draw_inset(struct drwsurf *ds, uint32_t x, uint32_t y, uint32_t width,
|
||||
uint32_t height, uint32_t border, Color color) {
|
||||
drw_fill_rectangle(ds, color, x + border, y + border, width - border,
|
||||
height - border);
|
||||
drw_fill_rectangle(ds, color, x + border, y + border, width - (border * 2),
|
||||
height - (border * 2));
|
||||
}
|
||||
void
|
||||
draw_over_inset(struct drwsurf *ds, uint32_t x, uint32_t y, uint32_t width,
|
||||
uint32_t height, uint32_t border, Color color) {
|
||||
drw_over_rectangle(ds, color, x + border, y + border, width - border,
|
||||
height - border);
|
||||
drw_over_rectangle(ds, color, x + border, y + border, width - (border * 2),
|
||||
height - (border * 2));
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* how tall the keyboard should be by default (can be overriden) */
|
||||
#define KBD_PIXEL_LANDSCAPE_HEIGHT 120
|
||||
|
||||
/* spacing between keys */
|
||||
#define KBD_KEY_BORDER 2
|
||||
/* spacing around each key */
|
||||
#define KBD_KEY_BORDER 1
|
||||
|
||||
/* layout declarations */
|
||||
enum layout_id {
|
||||
|
Loading…
x
Reference in New Issue
Block a user