David Rose 17 年之前
父节点
当前提交
d06330192a
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      panda/src/tinydisplay/tinyXGraphicsWindow.cxx

+ 3 - 0
panda/src/tinydisplay/tinyXGraphicsWindow.cxx

@@ -314,6 +314,9 @@ process_events() {
         // A normal window may be resized by the user at will.
         properties.set_size(event.xconfigure.width, event.xconfigure.height);
         system_changed_properties(properties);
+        ZB_resize(_frame_buffer, NULL, _properties.get_x_size(), _properties.get_y_size());
+        _pitch = _properties.get_x_size() * _bytes_per_pixel;
+        create_ximage();
       }
       break;