Skip to content

XShm driver paints a transparent background #120

Open
@ghost

Description

VideoXShm::clear is a bit buggy. inputWidth and inputHeight aren't set until after the first call to VideoXShm::output(), so the buffer doesn't get its alpha bits set, and the result is you see through the bsnes window onto the desktop.

https://github.com/bsnes-emu/bsnes/blob/master/ruby/video/xshm.cpp#L38

My proposal is to use the acquire function inside clear to ensure the input buffer size is non-zero, then fill that array.

If you guys approve, I'll submit a patch. Otherwise I'll leave it to you all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions