https://bugs.winehq.org/show_bug.cgi?id=57470
Bug ID: 57470 Summary: Abiword 2.6.8 - Trauncated icons in menus Product: Wine Version: 9.20 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: kyle.kcsoftwares@gmail.com Distribution: ---
Created attachment 77475 --> https://bugs.winehq.org/attachment.cgi?id=77475 Truncated icons in menu
Abiword 2.6.8 from https://web.archive.org/web/20210925210302/http://www.abisource.com/download...
Open menus, icons are truncated
https://bugs.winehq.org/show_bug.cgi?id=57470
--- Comment #1 from KRosUser kyle.kcsoftwares@gmail.com --- Created attachment 77476 --> https://bugs.winehq.org/attachment.cgi?id=77476 full icons in menu
https://bugs.winehq.org/show_bug.cgi?id=57470
KRosUser kyle.kcsoftwares@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|9.20 |9.22 Distribution|--- |Ubuntu
https://bugs.winehq.org/show_bug.cgi?id=57470
KRosUser kyle.kcsoftwares@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Abiword 2.6.8 - Trauncated |Abiword 2.6.8 - Truncated |icons in menus |icons in menus
https://bugs.winehq.org/show_bug.cgi?id=57470
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
https://bugs.winehq.org/show_bug.cgi?id=57470
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #2 from Fabian Maurer dark.shadow4@web.de --- Created attachment 77481 --> https://bugs.winehq.org/attachment.cgi?id=77481 Screenshot Win7, smallest font, classic theme
After looking into it for a while, I got this screenshot on my Win7 machine. Old theme and smallest possible font.
Not sure if there even is a wine bug here? Or how to continue here...
https://bugs.winehq.org/show_bug.cgi?id=57470
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #3 from Fabian Maurer dark.shadow4@web.de --- Problem happens in this line of code:
https://gitlab.winehq.org/wine/wine/-/blob/wine-9.22/dlls/win32u/menu.c?ref_...
NtGdiBitBlt( hdc, rect.left, (y - check_bitmap_height) / 2, check_bitmap_width, check_bitmap_height, mem_hdc, 0, 0, SRCCOPY, 0, 0 );
metrics come from https://gitlab.winehq.org/wine/wine/-/blob/wine-9.22/dlls/win32u/sysparams.c...
return tm.tmHeight <= 0 ? 13 : ((tm.tmHeight + tm.tmExternalLeading + 1) / 2) * 2 - 1;
If this is smaller than 16, then the image gets clipped.
Possible hack is
NtGdiStretchBlt( hdc, rect.left, (y - check_bitmap_height) / 2, check_bitmap_width, check_bitmap_height, mem_hdc, 0, 0, 16, 16, SRCCOPY, 0 );
Or making SM_CXMENUCHECK / SM_CYMENUCHECK at least 16.
Not sure what is correct, more testing is needed. Does this come from ROS? And do you maybe have an idea what is correct here?
https://bugs.winehq.org/show_bug.cgi?id=57470
--- Comment #4 from KRosUser kyle.kcsoftwares@gmail.com --- The correct display "full icons in menu" comes from ReactOS 0.4.16