On 27 July 2012 20:41, Jeffrey Lee <m...@phlamethrower.co.uk> wrote: > On Fri, 27 Jul 2012, Andrew Flegg wrote: > >> Is there something I've missed which'd allow video scaling (say 2x) >> for modes < 640x480. > > For the X11 port, the place to start looking is the > SDD_Name(Host_ChangeMode)() function, which is actually implemented in two > places - X/pseudo.c for pseudocolour displays and X/true.c for truecolour > displays. As you can see there's code in there to set HD.XScale and > HD.YScale to take into account rectangular pixel modes. So adding support > for 2x, 3x, 4x, etc. upscaling is just a case of changing HD.XScale, > HD.YScale, width, and height to the appropriate values.
Thanks for the pointer. However, I'm getting a weird effect when XScale > 2. Effectively, it acts like XScale = 1 (although YScale works). To reproduce: 1) In true.c's SDD_Name(Host_ChangeMode) add the following after HD.XScale and HD.YScale are initialised to 1: int origWidth = width, origHeight = height; 2) Add the following above the calculation of HD.Width and HD.Height: while (width < 800) { HD.XScale *= 2; HD.YScale * =2; height = origHeight * HD.YScale; width = origWidth * HD.XScale; } 3) Make & run `arcem' In the default mode of 28, this works (although 2x zoom on 640px is a bit too large for my tastes). Press F12 and enter `wimpmode 13'. At this point, the vertical scaling is as you'd expect, but despite HD.YScale being set to 3, and the window being set to the correct size, the screen display within the window only takes up a third of the width. Setting it to a power of 2 doesn't help either. What happens to 'HD' after its been initialised? What actually does the pixel blatting and how could this be getting confused with a >2 XScale, but not a >2 YScale? Cheers, Andrew -- Andrew Flegg -- mailto:and...@bleb.org | http://www.bleb.org/ ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -- arcem-devel mailing list arcem-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/arcem-devel