But when I do it with the following PureBasic code, the desktop is stretched to fit, which I don't want -> https://i.imgur.com/UvqKCWQ.jpg
Is there any way to make the code below NOT stretch it, so it's like the first image above? Thanks.
Code: Select all
res.DEVMODE\dmSize=SizeOf(DEVMODE)
res\dmPelsWidth=1024
res\dmPelsHeight=768
res\dmFields=#DM_PELSWIDTH|#DM_PELSHEIGHT
ChangeDisplaySettings_(@res,#CDS_UPDATEREGISTRY)