Skip to content

Commit 45e3f43

Browse files
arch1t3chtmojie126
authored andcommitted
Request 8-bit per R/G/B plane in video display
Fix color banding and inaccurate colors being displayed on some systems, especially Wayland, arising from the video display choosing a pixel format with too low of a bit depth.
1 parent 5180d1b commit 45e3f43

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/video_display.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ namespace {
7272
/// Attribute list for gl canvases; set the canvases to doublebuffered rgba with an 8 bit stencil buffer
7373
wxGLAttributes buildGLAttributes() {
7474
wxGLAttributes attrs;
75-
attrs.RGBA().DoubleBuffer().Stencil(8).EndList();
75+
attrs.RGBA().MinRGBA(8, 8, 8, 0).DoubleBuffer().Stencil(8).EndList();
7676
return attrs;
7777
}
7878

0 commit comments

Comments
 (0)