OBattler / PCem-X

PCem with enhancements
32 stars 8 forks source link

Taking screenshots #31

Open SharkyRawr opened 8 years ago

SharkyRawr commented 8 years ago

Hey there, I started working on a screenshot feature, something that I personally missed in PCem. :) You can check out my progress here: schumann2k/PCem-X@1f260f0a472ac3fbd182820fb1afee6f9556ec87

I'm not going to open a pull request just yet, since there are a few thing's I'd like to iron out before proposing a merge; see notes below.

Constructive criticism and comments welcome. :)

BogdanHabic commented 8 years ago

Hey @timofonic, I plan on finishing this up by Wednesday, but at that point I just plan on outputting the screen buffer to a file (letters at first, and then colors). I'm not sure if this is what you want? I guess you would like to save the screenshot as a bitmap?

OBattler commented 8 years ago

I already have second branch that has a screenshot feature already. It saves a screenshot as BMP when using DirectDraw, and PNG when using Direct3D. Link: http://goo.gl/JYoP4k .

Edit: And my code takes screenshots of CGA, MDA, and Hercules with no problems as well. It is also going to be submitted as a patch to mainline PCem (by TomWalker) after v11 is released.