UVNC Mirror dricer

Developers may discuss here.

UVNC Mirror dricer

Postby ananthonline » 2015-05-06 21:51

I can't seem to initialize the mirror driver with any other bit depth (bits per pixel) than 32. The driver initialization fails in GetDCMirror, specifically:

Code: Select all
m_hrootdc = CreateDC("DISPLAY",deviceName,NULL,NULL);


Is this a limitation of the mirror driver? I need to use this on a machine that only supports 16 or 24 bits per pixel. Is there any way to do this? I appreciate any help you can provide!
ananthonline
 
Posts: 1
Joined: 2015-05-06 21:42

Re: UVNC Mirror dricer

Postby Rudi De Vos » 2015-05-07 21:23

The mirror driver support 8/16/24/32
You can have a real display in 32bit with a 8bit mirror driver or a 24bit real with a 32bit mirror
The mirror driver is independed of the real display.
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5411
Joined: 2004-04-23 10:21

Re: UVNC Mirror dricer

Postby Rudi De Vos » 2015-05-07 21:26

To init the mirror driver you need to set the correct reg settings and call changedisplaysettings(ex), see the videodriver.cpp
after the mirror driver is active you can call createdc
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5411
Joined: 2004-04-23 10:21


Return to Developer discussions (mainly user-mode)

Who is online

Users browsing this forum: No registered users and 1 guest