mirror of
https://github.com/limine-bootloader/limine
synced 2024-11-23 09:02:11 +03:00
vbe: Properly handle a value of 0 for THEME_MARGIN_GRADIENT
This commit is contained in:
parent
333270a392
commit
2a084c4756
BIN
limine.bin
BIN
limine.bin
Binary file not shown.
@ -92,6 +92,11 @@ static uint32_t blend_gradient_from_box(int x, int y, uint32_t hex) {
|
||||
return hex;
|
||||
}
|
||||
|
||||
uint32_t bg_px = background->get_pixel(background, x, y);
|
||||
|
||||
if (margin_gradient == 0)
|
||||
return bg_px;
|
||||
|
||||
int distance, x_distance, y_distance;
|
||||
|
||||
if (x < frame_width)
|
||||
@ -113,8 +118,6 @@ static uint32_t blend_gradient_from_box(int x, int y, uint32_t hex) {
|
||||
+ (uint64_t)y_distance * (uint64_t)y_distance);
|
||||
}
|
||||
|
||||
uint32_t bg_px = background->get_pixel(background, x, y);
|
||||
|
||||
if (distance > margin_gradient)
|
||||
return bg_px;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user