Fix up MSVC project file for the major reorganization
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user