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.
also the size of DEVMODE is 220, not 156 like it was before.
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..
#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..
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.
all works fine now.
all hail to unikot!