mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Added some ifdefs around the vc9 fixes so that mse still compiles with msvc7 and wxWidget 2.6
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1568 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -48,9 +48,10 @@ Image generateDisabledImage(const Image& imgIn) {
|
||||
// ----------------------------------------------------------------------------- : set_menu_item_image
|
||||
|
||||
void set_menu_item_image(wxMenuItem* item, const String& resource) {
|
||||
if(item->GetId() != wxID_NEW)return;//@@@
|
||||
// load bitmap
|
||||
Bitmap bitmap = load_resource_tool_image(resource);
|
||||
#ifdef __WXMSW__
|
||||
#if defined(__WXMSW__)
|
||||
// make greyed bitmap
|
||||
bitmap = bitmap.GetSubBitmap(wxRect(0,0,16,16));
|
||||
Image disabledImage = generateDisabledImage(bitmap.ConvertToImage());
|
||||
|
||||
Reference in New Issue
Block a user