Ensures that OpenGL content is correctly sized when DPI scaling is active (either because of a non-DPI-aware app, or display mode emulation).
Tested on M2 Pro/macOS Sequoia with a variety of games (through wined3d and with display mode emulation enabled).
Changing the OpenGL back buffer size was previously only done when the winemac `RetinaMode` was enabled in the registry, now it's always being set. It's possible this could cause problems with other GPUs/drivers.
Also, `sync_context_rect` checks whether `draw_rect_win_dpi` has changed on every call (unlike `draw_rect` which is only checked after `WindowPosChanged` sets the `view_moved` flag). This follows winex11, which checks the DPI-scaled size in every `wglSwapBuffers` call.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/7979
--
v2: mshtml/tests: Test iframe window navigation resetting props.
mshtml: Get rid of useless "iter" member in the attribute collection enum.
mshtml: Expose "arguments" and "caller" from host constructors in IE9+ modes.
mshtml: Expose "caller" from host functions in IE9+ modes.
mshtml: Expose "arguments" from host functions in IE9+ modes.
jscript: Properly fill the builtin props.
mshtml: Don't redefine deleted props in dispex_define_property.
mshtml: Ignore setting non-writable external props.
https://gitlab.winehq.org/wine/wine/-/merge_requests/7970
Fixes Country Siblings' crash on startup.
`d2d_device_context_draw` doesn't accept `D2D_TARGET_UNKNOWN` because `render_target->target.bitmap->rtv` isn't reliably set when calling `ID3D11DeviceContext1_OMSetRenderTargets`. Therefore, we check for that condition and return early.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58185
--
v3: d2d1: Fix a crash in DrawGlyphRun method family if no target is set.
d2d1: Fix a crash in FillGeometry method family if no target is set.
d2d1: Fix a crash in DrawGeometry method family if no target is set.
d2d1: Fix a crash in DrawBitmap method family if no target is set.
d2d1: Fix a crash in Clear method if no target is set.
https://gitlab.winehq.org/wine/wine/-/merge_requests/7959