mirror of
https://github.com/davatorium/rofi.git
synced 2025-02-03 15:34:54 -05:00
Fix 2nd offset. #269
This commit is contained in:
parent
92248e6e13
commit
2b0aec52e0
1 changed files with 4 additions and 4 deletions
|
@ -590,10 +590,10 @@ static void parse_color ( Display *display, char *bg, Color *col )
|
|||
{
|
||||
unsigned int val = 0;
|
||||
val = color_get ( display, bg, "white" );
|
||||
col->alpha = ( ( val & 0xFF000000 ) >> 24 ) / 256.0;
|
||||
col->red = ( ( val & 0x00FF0000 ) >> 16 ) / 256.0;
|
||||
col->green = ( ( val & 0x0000FF00 ) >> 8 ) / 256.0;
|
||||
col->blue = ( ( val & 0x000000FF ) ) / 256.0;
|
||||
col->alpha = ( ( val & 0xFF000000 ) >> 24 ) / 255.0;
|
||||
col->red = ( ( val & 0x00FF0000 ) >> 16 ) / 255.0;
|
||||
col->green = ( ( val & 0x0000FF00 ) >> 8 ) / 255.0;
|
||||
col->blue = ( ( val & 0x000000FF ) ) / 255.0;
|
||||
}
|
||||
static void textbox_parse_string ( Display *display, const char *str, RowColor *color )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue