Skip to content

Commit

Permalink
honour the pixel depth given on the command line if we have one (make…
Browse files Browse the repository at this point in the history
…s it easier to test non-24-bit rendering)

git-svn-id: https://xpra.org/svn/Xpra/trunk@26901 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jul 6, 2020
1 parent 64c59c9 commit c2bc914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/client/gl/gtk3/gl_drawing_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def init_backing(self):
self._backing = da

def get_bit_depth(self, pixel_depth=0):
return self.context.get_bit_depth() or pixel_depth or 24
return pixel_depth or self.context.get_bit_depth() or 24

def gl_context(self):
b = self._backing
Expand Down

0 comments on commit c2bc914

Please sign in to comment.