diff options
author | Paul Olav Tvete <paul.tvete@theqtcompany.com> | 2015-03-18 10:03:36 +0100 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@theqtcompany.com> | 2015-03-18 09:25:57 +0000 |
commit | f64b87a5df8870be138dbf3febad950e1fc4ed8c (patch) | |
tree | 4cd011ed8269291cdd3015efd98db4a0e0551ff9 /tests | |
parent | 45a0629a95cf91884dd05b45f5e636d948d858a2 (diff) |
Fallback to malloc for insanely large windows
If shmget() does not work (probably because the backingstore size is
bigger than SHMMAX), don't create a QImage with the previous buffer and
the new size. That does not end well when we try to draw to the image
later. Instead, fall back to the malloc path, like we do when the system
doesn't support shared memory.
[ChangeLog][X11] Don't crash when resizing windows to bigger than 3840x2160
Task-number: QTBUG-45071
Change-Id: I009de7c2179ffde28e252593067756877cad1b1c
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions