Skip to content

Commit d598107

Browse files
feat(shell): make experimental ownerdraw support optional
fix #190 fix #187
1 parent 2cd7dda commit d598107

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/shell/config.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ struct config {
6161
bool vsync = true;
6262
bool ignore_owner_draw = true;
6363
bool reverse_if_open_to_up = true;
64+
bool experimental_ownerdraw_support = false;
6465

6566
// debug purpose only
6667
bool search_large_dwItemData_range = false;

src/shell/contextmenu/contextmenu.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ menu menu::construct_with_hmenu(HMENU hMenu, HWND hWnd, bool is_top) {
130130
continue;
131131
}
132132

133-
if (info.fType & MFT_OWNERDRAW) {
133+
if ((info.fType & MFT_OWNERDRAW) && config::current->context_menu.experimental_ownerdraw_support) {
134134
auto od = getBitmapFromOwnerDraw(&info, hWnd);
135135
if (od.width && od.height) {
136136
item.owner_draw = od;

0 commit comments

Comments
 (0)