Edge ornaments, not finished

This commit is contained in:
pelya
2017-03-29 23:45:06 +03:00
committed by Sergii Pylypenko
parent 47e9d0bc49
commit 9d01d66923
4 changed files with 147 additions and 3 deletions

View File

@@ -2330,7 +2330,12 @@ static EventState HandleWindowDragging()
if (!_left_button_down) {
w->flags &= ~WF_DRAGGING;
if (GetWindowDraggedOffScreen(w)) {
delete w;
if (w->window_class == WC_SELECT_GAME) {
w->left = (_screen.width - w->width) / 2;
w->top = (_screen.height - w->height) / 2;
} else {
delete w;
}
}
break;
}