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:
twanvl
2007-01-30 17:27:25 +00:00
parent 7355ce5b51
commit 315af1f14a
30 changed files with 383 additions and 313 deletions
+9 -1
View File
@@ -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