I want to do hardware stretching of an image in DirectDraw fullscreen. I was wondering how I would do it? It doesnt matter if I have to draw the image to a dedicated DirectDraw surface object. I do not mind chaning my code to do so.
Also how do you set up DirectDraw for windowed mode operation?
Also how do you set up DirectDraw for windowed mode operation?
setting up directdraw for windowed mode is a hell of a job. there is an article about it on gamedev.net, if i remeber correctly
hi x86asm,
i have coded a chip8 emulator in win32asm using directx, you can find the source code here:
http://www.zophar.net/Files/CrazyChip8_MASM_src.zip
in window mode, the streching is done via DX, just make sure yo handle the WM_SIZE properly.
i have coded a chip8 emulator in win32asm using directx, you can find the source code here:
http://www.zophar.net/Files/CrazyChip8_MASM_src.zip
in window mode, the streching is done via DX, just make sure yo handle the WM_SIZE properly.
Originally posted by xlifewirex
setting up directdraw for windowed mode is a hell of a job. there is an article about it on gamedev.net, if i remeber correctly
setting up directdraw for windowed mode is a hell of a job. there is an article about it on gamedev.net, if i remeber correctly
Hell of a job is to strong of a word. You just nead a clipper and you can't just flip the surfaces like in the exclusiv mode.
Hell of a job is to strong of a word. You just nead a clipper and you can't just flip the surfaces like in the exclusiv mode.
Cannot use BltFast. You must use BitBlt.