-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All rendering engines support alpha channel.
- Loading branch information
Showing
2 changed files
with
5 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright (C) 2006-2017 Kouhei Sutou <[email protected]> | ||
# Copyright (C) 2006-2024 Sutou Kouhei <[email protected]> | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
|
@@ -93,13 +93,10 @@ def draw_last_locus(renderer) | |
end | ||
|
||
def draw(renderer) | ||
if @back_color.alpha == 1.0 or | ||
(@back_color.alpha < 1.0 and renderer.alpha_available?) | ||
size = renderer.size | ||
args = [true, 0, 0, size.real_width, size.real_height] | ||
args << @back_color | ||
renderer.draw_rectangle(*args) | ||
end | ||
size = renderer.size | ||
renderer.draw_rectangle(true, | ||
0, 0, size.real_width, size.real_height, | ||
@back_color) | ||
|
||
draw_available_marks(renderer, next_available_motions) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters