소스 검색

Catch errors resizing framebuffer

tags/v1.10.90
Pierre Ossman 4 년 전
부모
커밋
11080322a0
1개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 7
    2
      unix/xserver/hw/vnc/vncExtInit.cc

+ 7
- 2
unix/xserver/hw/vnc/vncExtInit.cc 파일 보기

@@ -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…
취소
저장