mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
misc: remove resource tool image bitmap block
This was giving me issues on Win10, right click context menus were failing to get text.
This commit is contained in:
+1
-7
@@ -245,13 +245,7 @@ void set_menu_item_image(wxMenuItem* item, const String& resource) {
|
||||
if (item->GetKind() == wxITEM_CHECK) return; // check items can't have icons
|
||||
#endif
|
||||
Image bitmap = load_resource_tool_image(resource);
|
||||
#if defined(__WXMSW__)
|
||||
Image disabled_bitmap = generate_disabled_image(bitmap);
|
||||
item->SetBitmaps(bitmap, bitmap);
|
||||
item->SetDisabledBitmap(disabled_bitmap);
|
||||
#else
|
||||
item->SetBitmap(bitmap);
|
||||
#endif
|
||||
item->SetBitmap(bitmap);
|
||||
}
|
||||
|
||||
wxMenuItem* make_menu_item(wxMenu* menu, int id, const char* resource, const String& text, const String& help, wxItemKind kind, wxMenu* submenu) {
|
||||
|
||||
Reference in New Issue
Block a user