Fix up MSVC project file for the major reorganization

This commit is contained in:
2017-08-30 00:09:01 -04:00
parent 7e7f3d2b81
commit 9d86053817
14 changed files with 755 additions and 690 deletions

View File

@@ -3,9 +3,8 @@
#include <windows.h>
#include <exception>
#include <SFML/Graphics/RenderWindow.hpp>
#include "restypes.hpp"
#include "res_cursor.hpp"
extern cursor_type current_cursor;
extern sf::RenderWindow mainPtr;
// This function adapted from <http://www.codeproject.com/Articles/5220/Creating-a-color-cursor-from-a-bitmap>
@@ -92,7 +91,7 @@ void obscureCursor() {
void set_cursor(cursor_type which_c) {
if(which_c != watch_curs)
current_cursor = which_c;
Cursor::current = which_c;
if(which_c == text_curs) {
SetCursor(LoadCursor(NULL, IDC_IBEAM));
} else {
@@ -102,5 +101,5 @@ void set_cursor(cursor_type which_c) {
}
void restore_cursor() {
set_cursor(current_cursor);
set_cursor(Cursor::current);
}