mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Changes to make it work in windows again;
New header util/platform.hpp for platform specific stuff that doesn't go elsewhere; Changed resource names from "CURSOR_SOMETHING" to "cursor/something", so it matches the filenames (in progress for other resource types). git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@190 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+9
-1
@@ -69,7 +69,7 @@ void draw_checker(RotatedDC& dc, const RealRect& rect) {
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : Image related
|
||||
// ----------------------------------------------------------------------------- : Resource related
|
||||
|
||||
Image load_resource_image(const String& name) {
|
||||
#if defined(__WXMSW__)
|
||||
@@ -102,6 +102,14 @@ Image load_resource_image(const String& name) {
|
||||
#endif
|
||||
}
|
||||
|
||||
wxCursor load_resource_cursor(const String& name) {
|
||||
#if defined(__WXMSW__)
|
||||
return wxCursor(_("cursor/") + name, wxBITMAP_TYPE_CUR_RESOURCE);
|
||||
#else
|
||||
return wxCursor(load_resource_image(_("cursor/") + name));
|
||||
#endif
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : Platform look
|
||||
|
||||
// Draw a basic 3D border
|
||||
|
||||
Reference in New Issue
Block a user