Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button redraw bug #31

Open
jasonKercher opened this issue Dec 23, 2022 · 0 comments
Open

Button redraw bug #31

jasonKercher opened this issue Dec 23, 2022 · 0 comments

Comments

@jasonKercher
Copy link

From setPressed legato_widget_button.c:

    // try to find a reason to redraw
    if(_this->pressedImage != NULL && 
       _this->pressedImage != _this->releasedImage)
    {
        dirty = LE_TRUE;
    }
       
    if(_this->widget.style.borderType == LE_WIDGET_BORDER_BEVEL)
    {
        dirty = LE_TRUE;
    }
        
    if(_this->pressedOffset != 0 &&
       (_this->pressedImage != NULL ||
       (_this->string != NULL && _this->string->fn->isEmpty(_this->string) == LE_FALSE)))
    {
        dirty = LE_TRUE;
    }
        
    if(dirty == LE_TRUE)
    {
        _this->fn->invalidate(_this);
    }

What happens if dirty never goes true because of all the reasons above, and we didn't check the scheme background vs base?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant