pouët.net

Go to bottom

screensettings DEVMODE

category: code [glöplog]
 
ive seen some intro-code where the dmFields paremeter in DEVMODE has the value 0x001c0000. im just wondering if anyone knows what the 'c' hex-value stands for? According to MSDN that position is the dmScale parameter, but DM_SCALE is 0x00000010L in wingdi.h. doesnt make any sense. Theres no macro that has the value: 0x000c0000. When compiling some of my old intro-code in Windows 10 and Visual C++ Express 2015 does not show stuff in fullscreen so i want to find out wether or not this parameter has change or atleast fix the issue.
added on the 2016-04-04 23:37:56 by rudi rudi
also the size of DEVMODE is 220, not 156 like it was before.
added on the 2016-04-04 23:41:35 by rudi rudi
ah i didnt see that some values had same position, my bad.
#define DM_BITSPERPEL 0x00040000L
#define DM_PELSWIDTH 0x00080000L
#define DM_PELSHEIGHT 0x00100000L
of course this means DM_BITSPERPEL|DM_PELSWIDTH|DM_PELSHEIGHT = 0x001c0000.
anyways. this does not solve the fullscreen issue..
added on the 2016-04-04 23:52:05 by rudi rudi
doh. stupid me. of course i compiled in UNICODE, hence DEVMODE => 220. 156 is Not set. thats the reason for the confusion.
all works fine now.
added on the 2016-04-05 00:02:08 by rudi rudi
all hail to unikot!
added on the 2016-04-05 22:35:49 by T$ T$

login

Go to top