projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0051208
)
Update window_w32.cpp
author
Suleyman TURKMEN
<sturkmen@hotmail.com>
Sun, 20 Sep 2015 21:34:15 +0000
(
00:34
+0300)
committer
Suleyman TURKMEN
<sturkmen@hotmail.com>
Sun, 20 Sep 2015 21:34:15 +0000
(
00:34
+0300)
modules/highgui/src/window_w32.cpp
patch
|
blob
|
history
diff --git
a/modules/highgui/src/window_w32.cpp
b/modules/highgui/src/window_w32.cpp
index
08a137a
..
988aeda
100644
(file)
--- a/
modules/highgui/src/window_w32.cpp
+++ b/
modules/highgui/src/window_w32.cpp
@@
-1909,7
+1909,8
@@
static void showSaveDialog(CvWindow* window)
if (GetSaveFileName(&ofn))
{
- cv::Mat tmp; cv::flip(cv::Mat(sz.cy, sz.cx, CV_8UC(channels), data), tmp, 0);
+ cv::Mat tmp;
+ cv::flip(cv::Mat(sz.cy, sz.cx, CV_8UC(channels), data, (sz.cx * channels + 3) & -4), tmp, 0);
cv::imwrite(szFileName, tmp);
}
}