Page 1 of 1

IView does not resize when window Restored or Maximized

Posted: 26 Oct 2021, 22:59
by Logrus
Hi,
in version 3.1.1 the Win32Display::DispatchEvent code has been changed.
in the handler SIZE_RESTORED and SIZE_MAXIMAZED removed the notification mSizeChanged (...)

in 3.1.1 there is another way to resize IView?

Re: IView does not resize when window Restored or Maximized

Posted: 27 Oct 2021, 11:06
by sfernandez
Could you please report this in our bugtracker, this was a regression and we have to fix it.

IView has a SetSize() method you can manually call, but I guess in the meantime you can just copy the code from WM_EXITSIZEMOVE to WM_SIZE to force the SizeChanged event to be raised.

Re: IView does not resize when window Restored or Maximized

Posted: 27 Oct 2021, 11:20
by jsantos
We broke this when fixing (#2098) for D3D12. Sending too many WM_SIZEs was crashing a driver.
It will be fixed in 3.1.2. Please, use Win32Display source from 3.1.0 meanwhile.

Re: IView does not resize when window Restored or Maximized

Posted: 27 Oct 2021, 11:41
by Logrus
OK

bugtracker#2165

Re: IView does not resize when window Restored or Maximized

Posted: 27 Oct 2021, 13:22
by jsantos
Thank you!