Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
6167469b
Commit
6167469b
authored
Sep 11, 2011
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed fullscreen window mode on Windows.
parent
fd5b0c1f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
precomp.hpp
modules/highgui/src/precomp.hpp
+10
-10
window_w32.cpp
modules/highgui/src/window_w32.cpp
+2
-2
No files found.
modules/highgui/src/precomp.hpp
View file @
6167469b
...
...
@@ -48,6 +48,16 @@
#include "cvconfig.h"
#if defined WIN32 || defined _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef min
#undef max
void
FillBitmapInfo
(
BITMAPINFO
*
bmi
,
int
width
,
int
height
,
int
bpp
,
int
origin
);
#endif
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/highgui/highgui_c.h"
#include "opencv2/imgproc/imgproc_c.h"
...
...
@@ -64,16 +74,6 @@
#include "opencv2/highgui/highgui_tegra.hpp"
#endif
#if defined WIN32 || defined _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef min
#undef max
void
FillBitmapInfo
(
BITMAPINFO
*
bmi
,
int
width
,
int
height
,
int
bpp
,
int
origin
);
#endif
/* Errors */
#define HG_OK 0
/* Don't bet on it! */
#define HG_BADNAME -1
/* Bad window or file name */
...
...
modules/highgui/src/window_w32.cpp
View file @
6167469b
...
...
@@ -420,7 +420,7 @@ void cvSetModeWindow_W32( const char* name, double prop_value)//Yannick Verdie
if
(
window
->
status
==
CV_WINDOW_FULLSCREEN
&&
prop_value
==
CV_WINDOW_NORMAL
)
{
icvLoadWindowPos
(
window
->
name
,
position
);
SetWindowLongPtr
(
window
->
frame
,
GWL_STYLE
,
dwStyle
|
WS_CAPTION
);
SetWindowLongPtr
(
window
->
frame
,
GWL_STYLE
,
dwStyle
|
WS_CAPTION
|
WS_THICKFRAME
);
SetWindowPos
(
window
->
frame
,
HWND_TOP
,
position
.
x
,
position
.
y
,
position
.
width
,
position
.
height
,
SWP_NOZORDER
|
SWP_FRAMECHANGED
);
window
->
status
=
CV_WINDOW_NORMAL
;
...
...
@@ -447,7 +447,7 @@ void cvSetModeWindow_W32( const char* name, double prop_value)//Yannick Verdie
//fullscreen
position
.
x
=
mi
.
rcMonitor
.
left
;
position
.
y
=
mi
.
rcMonitor
.
top
;
position
.
width
=
mi
.
rcMonitor
.
right
-
mi
.
rcMonitor
.
left
;
position
.
height
=
mi
.
rcMonitor
.
bottom
-
mi
.
rcMonitor
.
top
;
SetWindowLongPtr
(
window
->
frame
,
GWL_STYLE
,
dwStyle
&
~
WS_CAPTION
);
SetWindowLongPtr
(
window
->
frame
,
GWL_STYLE
,
dwStyle
&
~
WS_CAPTION
&
~
WS_THICKFRAME
);
SetWindowPos
(
window
->
frame
,
HWND_TOP
,
position
.
x
,
position
.
y
,
position
.
width
,
position
.
height
,
SWP_NOZORDER
|
SWP_FRAMECHANGED
);
window
->
status
=
CV_WINDOW_FULLSCREEN
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment