Don't use bit 7 for signalling in a signed type...

This commit is contained in:
Simon Long 2023-12-07 14:29:15 +00:00
parent d89440a16e
commit 9f42cc94a5
2 changed files with 6 additions and 6 deletions

View file

@ -296,7 +296,7 @@ button_xbm_load(const char *button_name, const char *alt_name,
}
if (!pixmap.data) {
if (fallback_button[0] == 0xFF) {
if (fallback_button[0] == 0x40) {
*buffer = NULL;
return;
}

View file

@ -122,7 +122,7 @@ load_buttons(struct theme *theme)
},
{
"menu_hover", NULL,
{ 0xFF, 0, 0, 0, 0, 0 },
{ 0x40, 0, 0, 0, 0, 0 },
{
&theme->button_menu_active_hover,
theme->window_active_button_menu_unpressed_image_color,
@ -134,7 +134,7 @@ load_buttons(struct theme *theme)
},
{
"iconify_hover", NULL,
{ 0xFF, 0, 0, 0, 0, 0 },
{ 0x40, 0, 0, 0, 0, 0 },
{
&theme->button_iconify_active_hover,
theme->window_active_button_iconify_unpressed_image_color,
@ -146,7 +146,7 @@ load_buttons(struct theme *theme)
},
{
"max_hover", NULL,
{ 0xFF, 0, 0, 0, 0, 0 },
{ 0x40, 0, 0, 0, 0, 0 },
{
&theme->button_maximize_active_hover,
theme->window_active_button_max_unpressed_image_color,
@ -158,7 +158,7 @@ load_buttons(struct theme *theme)
},
{
"max_hover_toggled", "max_toggled_hover",
{ 0xFF, 0, 0, 0, 0, 0 },
{ 0x40, 0, 0, 0, 0, 0 },
{
&theme->button_restore_active_hover,
theme->window_active_button_max_unpressed_image_color,
@ -170,7 +170,7 @@ load_buttons(struct theme *theme)
},
{
"close_hover", NULL,
{ 0xFF, 0, 0, 0, 0, 0 },
{ 0x40, 0, 0, 0, 0, 0 },
{
&theme->button_close_active_hover,
theme->window_active_button_close_unpressed_image_color,