Browse Source

Catch errors resizing framebuffer

tags/v1.10.90
Pierre Ossman 4 years ago
parent
commit
11080322a0
1 changed files with 7 additions and 2 deletions
  1. 7
    2
      unix/xserver/hw/vnc/vncExtInit.cc

+ 7
- 2
unix/xserver/hw/vnc/vncExtInit.cc View File

@@ -413,8 +413,13 @@ void vncPostScreenResize(int scrIdx, int success, int width, int height)
{
if (success) {
// Let the RFB core know of the new dimensions and framebuffer
desktop[scrIdx]->setFramebuffer(width, height,
vncFbptr[scrIdx], vncFbstride[scrIdx]);
try {
desktop[scrIdx]->setFramebuffer(width, height,
vncFbptr[scrIdx],
vncFbstride[scrIdx]);
} catch (rdr::Exception& e) {
vncFatalError("vncPostScreenResize: %s\n", e.str());
}
}

desktop[scrIdx]->unblockUpdates();

Loading…
Cancel
Save