Skip to content

Commit

Permalink
Set missing .depth field in rfbPixelFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
matteodelabre committed Jan 25, 2021
1 parent e0fe2d1 commit 4142316
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ auto screen::create_framebuf(rfbClient* vnc_client) -> rfbBool
// Configure connection with device framebuffer settings
that->vnc_client->frameBuffer = that->device.get_data();
that->vnc_client->format.bitsPerPixel = that->device.get_bits_per_pixel();
that->vnc_client->format.depth = that->device.get_bits_per_pixel();
that->vnc_client->format.redShift = that->device.get_red_offset();
that->vnc_client->format.redMax = that->device.get_red_max();
that->vnc_client->format.greenShift = that->device.get_green_offset();
Expand Down

0 comments on commit 4142316

Please sign in to comment.