home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enforced three empty lines between functions / large meaningful blocks.
[plomrogue]
/
src
/
windows.c
diff --git
a/src/windows.c
b/src/windows.c
index b2643bf31d3ba0d0b065a92ae6c9bd4dfb8492e3..84f0a2ed849a58b9b8fd6542917f76d85172fab2 100644
(file)
--- a/
src/windows.c
+++ b/
src/windows.c
@@
-226,8
+226,8
@@
static void draw_win_borders(struct Win * w, char active)
uint16_t title_offset = 0;
if (w->frame.size.x > strlen(w->title) + 2)
{
uint16_t title_offset = 0;
if (w->frame.size.x > strlen(w->title) + 2)
{
- title_offset = (w->frame.size.x - (strlen(w->title) + 2)) / 2;
// + 2 is for decoration
- }
+ title_offset = (w->frame.size.x - (strlen(w->title) + 2)) / 2;
/* + 2 */
+ }
/* is for padding/decoration */
uint16_t length_visible = strnlen(w->title, w->frame.size.x - 2);
char title[length_visible + 3];
char decoration = ' ';
uint16_t length_visible = strnlen(w->title, w->frame.size.x - 2);
char title[length_visible + 3];
char decoration = ' ';
@@
-243,6
+243,8
@@
static void draw_win_borders(struct Win * w, char active)
}
}
}
}
+
+
static void draw_wins_borders(struct Win * w, struct Win * w_active,
struct Corners * corners, uint16_t i)
{
static void draw_wins_borders(struct Win * w, struct Win * w_active,
struct Corners * corners, uint16_t i)
{