gui: Limit QImage sizes to 32767x32767.
gui: Limit QImage sizes to 32767x32767.

As this seems to be the maximum supported in practice.

apitrace/apitrace,apitrace/apitrace,apitrace/apitrace,apitrace/apitrace