diff options
author | neoraider <devnull@localhost> | 2007-06-25 18:55:01 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-06-25 18:55:01 +0200 |
commit | b8549034bef0de090547f32af07df248e68c7064 (patch) | |
tree | 2cf8128807a5d9e4b53e1461492b4930a2743ad3 /edit.c | |
parent | a686a31daece494006e3ce841a5883472a0f412a (diff) | |
download | zoomedit-b8549034bef0de090547f32af07df248e68c7064.tar zoomedit-b8549034bef0de090547f32af07df248e68c7064.zip |
zoomedit: Added Pixmap to drawing; added "point in polygon" checker; rooms are now selectable
Diffstat (limited to 'edit.c')
-rw-r--r-- | edit.c | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -0,0 +1,22 @@ +#include "edit.h" + + +static int editMode = EDIT_MODE_VIEW; + +static ROOM *activeRoom = NULL; + +int getEditMode() { + return editMode; +} + + +ROOM *getActiveRoom() { + return activeRoom; +} + +void setActiveRoom(ROOM *room) { + activeRoom = room; + + if(editMode == EDIT_MODE_VIEW || editMode == EDIT_MODE_SELECTED) + editMode = (room == NULL) ? EDIT_MODE_VIEW : EDIT_MODE_SELECTED; +} |