diff options
Diffstat (limited to 'src/preview/PreviewView.cpp')
| -rw-r--r-- | src/preview/PreviewView.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/preview/PreviewView.cpp b/src/preview/PreviewView.cpp index d0bd6da..983e730 100644 --- a/src/preview/PreviewView.cpp +++ b/src/preview/PreviewView.cpp @@ -50,6 +50,12 @@ void PreviewView::OnDraw() g->drawrect(Position.X, Position.Y, XRES/2, YRES/2, 255, 255, 255, 100); } +void PreviewView::OnMouseDown(int x, int y, unsigned button) +{ + if(!(x > Position.X && y > Position.Y && y < Position.Y+Size.Y && x < Position.X+Size.X)) //Clicked outside window + c->Exit(); +} + void PreviewView::NotifySaveChanged(PreviewModel * sender) { Save * save = sender->GetSave(); |
