https://bugs.winehq.org/show_bug.cgi?id=57311
Bug ID: 57311 Summary: Nikon NX Studio Overlay windows incorrectly shown. Product: Wine Version: 9.19 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: christoph.bartoschek@gmail.com Distribution: ---
Created attachment 77257 --> https://bugs.winehq.org/attachment.cgi?id=77257 Wrong positions of info and histogram overlays
Before commit 800bb91323af078a44e75c5ac341f63df7fbf812, Nikon NX Studio did not properly show certain overlays. For example: Info, Histogramm, Crop region The overlays were not relative to the picture or the application but relative to the overall screen. The items 5 and 6 show where the overlays should be shown: https://nikonimglib.com/nxstdo/onlinehelp/en/the_bottom_toolbar_11.html
The problem also appeared if I enabled the virtual desktop. However it was even worse as the overlay was black and not transparent and it covered the application.
Commit 800bb91323af078a44e75c5ac341f63df7fbf812 (found by git bisect) changed this. The overlays are no longer visible at all. I see for example indicators that they should be visible but they are not on screen. I cannot determine whether they are covered by the application or whether they are not shown at all.
The attached screenshot shows the situation before 800bb91323af078a44e75c5ac341f63df7fbf812
https://bugs.winehq.org/show_bug.cgi?id=57311
--- Comment #1 from Christoph Bartoschek christoph.bartoschek@gmail.com --- Created attachment 77258 --> https://bugs.winehq.org/attachment.cgi?id=77258 Large black overlay when using the virtual desktop.
This screenshot shows how the situation looked like in the virtual desktop before the mentioned commit. One can see the histogram being part of a window that matches the picture canvas but being in the wrong position and non transparent.
https://bugs.winehq.org/show_bug.cgi?id=57311
--- Comment #2 from Christoph Bartoschek christoph.bartoschek@gmail.com --- Created attachment 77259 --> https://bugs.winehq.org/attachment.cgi?id=77259 No histogram and info are shown after 800bb91323a
After commit 800bb91323a, no overlays are visible. The yellow indicators at the bottom show that the info box and the histogram should be shown.
https://bugs.winehq.org/show_bug.cgi?id=57311
Rémi Bernon rbernon@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rbernon@codeweavers.com Regression SHA1| |800bb91323af078a44e75c5ac34 | |1f63df7fbf812 Keywords| |regression
https://bugs.winehq.org/show_bug.cgi?id=57311
--- Comment #3 from Christoph Bartoschek christoph.bartoschek@gmail.com --- Before and after the mentioned commit the histogram is a child of the Image Screen as shown by info wnd in winedbg:
Wine-dbg>info wnd 0x00010a96 Window handle Class Name Style WndProc Thread Text 00010a96 AfxWnd140u 50000000 0000000000000000 00000024 Image Screen 00010a98 AfxWnd140u 40000000 0000000000000000 00000024 SNS Logout 00020aae AfxWnd140u 40000000 0000000000000000 00000024 HDR Window 00010b4a AfxWnd140u 42000000 0000000000000000 00000024 Movie Window 00030bee AfxWnd140u 50000000 0000000000000000 00000024 InfoScreen 000f0bac AfxWnd140u 50000000 0000000000000000 00000024 Histogram Scre 00010ab0 AfxWnd140u 50000000 0000000000000000 00000024 ImageFrameScre
When the Histogram is being created NtUserCreateWindowEx is called with
ex_style=0x8080020 (WS_EX_NOACTIVATE | WS_EX_LAYERED | WS_EX_TRANSPARENT) style=0x50000000 (WS_CHILD | WS_VISIBLE)
So the question for me would be why the histogram is no longer shown of if it is shown why is it empty or hidden.
https://bugs.winehq.org/show_bug.cgi?id=57311
--- Comment #4 from Rémi Bernon rbernon@codeweavers.com --- https://gitlab.winehq.org/wine/wine/-/merge_requests/6684 should fix this issue, although the application also suffers from another regression from bug 57306.
The incorrect position of the histogram window is because we didn't and still don't support layered child windows very well. I've got some patch that works for this specific application but I'm not sure it would work in all cases and I'll need more time to investigate how it is supposed to behave.
https://bugs.winehq.org/show_bug.cgi?id=57311
--- Comment #5 from Christoph Bartoschek christoph.bartoschek@gmail.com --- With the provided patch https://gitlab.winehq.org/wine/wine/-/merge_requests/6684 I can confirm that the histogram and the Info screens are shown.
Like the state before 800bb91323af078a44e75c5ac341f63df7fbf812 they are shown outside of the Image Screen and seem to be anchored at the desktop 0,0 position.
One thing that I noted now is that the area that is boudned by an imaginary box of the Image Screen size does not react to mouse clicks.
So what seems to be missing is to move the new surface on top of the Image Screen.
https://bugs.winehq.org/show_bug.cgi?id=57311
Rémi Bernon rbernon@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |3ee64be27ff45aaece1baecfed8 | |90e11b6778d4f Status|UNCONFIRMED |RESOLVED
--- Comment #6 from Rémi Bernon rbernon@codeweavers.com --- This particular regression should be fixed with 3ee64be27ff45aaece1baecfed890e11b6778d4f, please open a different bug if you want to track the incorrect overlay position.
https://bugs.winehq.org/show_bug.cgi?id=57311
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 9.20.
https://bugs.winehq.org/show_bug.cgi?id=57311
--- Comment #8 from Christoph Bartoschek christoph.bartoschek@gmail.com --- Just for reference. The follow-up bug is: https://bugs.winehq.org/show_bug.cgi?id=57349