mirror of
https://github.com/AngelJumbo/lavat.git
synced 2024-11-16 04:36:40 +00:00
Bug fix -k color with no rim
This commit is contained in:
parent
10a255ce84
commit
fc6b037f39
6
lavat.c
6
lavat.c
@ -16,7 +16,7 @@ typedef struct {
|
|||||||
|
|
||||||
static char *custom = NULL;
|
static char *custom = NULL;
|
||||||
static short color = TB_DEFAULT;
|
static short color = TB_DEFAULT;
|
||||||
static short color2 = TB_BOLD;
|
static short color2 = TB_DEFAULT;
|
||||||
static int nballs = 10;
|
static int nballs = 10;
|
||||||
static short speedMult = 1;
|
static short speedMult = 1;
|
||||||
static short rim = 0;
|
static short rim = 0;
|
||||||
@ -57,8 +57,8 @@ int main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
char *custom2 = custom;
|
char *custom2 = custom;
|
||||||
|
|
||||||
if (color2 == TB_BOLD)
|
if (color2 == TB_DEFAULT || !rim)
|
||||||
color2 = color | color2;
|
color2 = color | TB_BOLD;
|
||||||
|
|
||||||
if (custom && strlen(custom) > 1 && rim) {
|
if (custom && strlen(custom) > 1 && rim) {
|
||||||
custom2 = custom + 1;
|
custom2 = custom + 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user