mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-08 08:26:38 +00:00
Fix GUI1 button hover highlight.
This commit is contained in:
parent
9e6762690c
commit
bd475c50c1
@ -289,7 +289,7 @@ void button::enable(bool new_val)
|
||||
|
||||
void button::draw_contents()
|
||||
{
|
||||
texture& image = image_;
|
||||
texture image = image_;
|
||||
|
||||
int offset = 0;
|
||||
switch(state_) {
|
||||
@ -364,7 +364,7 @@ void button::draw_contents()
|
||||
draw::blit(image, dest);
|
||||
|
||||
if (overlayImage_) {
|
||||
texture& overlay = enabled() ? overlayImage_ : overlayDisabledImage_;
|
||||
texture overlay = enabled() ? overlayImage_ : overlayDisabledImage_;
|
||||
|
||||
if (overlayPressedImage_) {
|
||||
switch (state_) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user