GrabYourScreen: Updated to last U++ changes

git-svn-id: svn://ultimatepp.org/upp/trunk@10527 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
koldo 2016-12-07 07:53:19 +00:00
parent 3435a9af5d
commit e1d653a12c

View file

@ -95,11 +95,11 @@ void GrabScreen::ButGrab_Push() {
bool ret;
if (swGrabMode.GetData() == 0)
ret = Record_Desktop(editFileNameGrab, editTime, editFrameRate, opGrabMouse);
ret = Record_Desktop(~editFileNameGrab, editTime, editFrameRate, opGrabMouse);
else if (swGrabMode.GetData() == 1)
ret = Record_Window(editFileNameGrab, editTime, GetWindowIdFromCaption(~editWindowTitle, false), editFrameRate, opGrabMouse);
ret = Record_Window(~editFileNameGrab, editTime, GetWindowIdFromCaption(~editWindowTitle, false), editFrameRate, opGrabMouse);
else if (swGrabMode.GetData() == 2)
ret = Record_DesktopRectangle(editFileNameGrab, editTime, editLeft, editTop, editWidth, editHeight, editFrameRate, opGrabMouse);
ret = Record_DesktopRectangle(~editFileNameGrab, editTime, editLeft, editTop, editWidth, editHeight, editFrameRate, opGrabMouse);
else
throw Exc("Unexpected value");
if (!ret)