mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Changed resource names to be lowercase, and to match the filenames (or what they should be);
Replaced all direct construction of bitmaps and icons using wxBitmap("name") with load_resource_* calls.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@191 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -110,6 +110,22 @@ wxCursor load_resource_cursor(const String& name) {
|
||||
#endif
|
||||
}
|
||||
|
||||
wxIcon load_resource_icon(const String& name) {
|
||||
#if defined(__WXMSW__)
|
||||
return wxIcon(_("icon/") + name);
|
||||
#else
|
||||
return wxIcon(load_resource_image(_("icon/") + name));
|
||||
#endif
|
||||
}
|
||||
|
||||
wxBitmap load_resource_tool_image(const String& name) {
|
||||
#if defined(__WXMSW__)
|
||||
return wxBitmap(_("tool/") + name);
|
||||
#else
|
||||
return load_resource_image(_("tool/") + name);
|
||||
#endif
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : Platform look
|
||||
|
||||
// Draw a basic 3D border
|
||||
|
||||
Reference in New Issue
Block a user