[Scummvm-devel] Features and graphics modes

Marcus Comstedt marcus at mc.pp.se
Sat Mar 13 07:14:04 CET 2004


Max Horn <max at quendi.de> writes:

> When the set screen size has an aspect ration of 640:400 = 320:200 =
> 8:5, then strech it to 640:480 = 320:240 = 8:6 = 4:3
>
> So, you only have to do a vertical strech by a factor of 6/5.

Wouldn't it make more sense to define it as stretching the image to
fill the screen, rather than defining it as strething by 6/5?  I.e. if
an engine (hypothetically) opens a screen of 320:192, wouldn't it be
better to stretch it by 5/4 than 6/5?


> Yes. And that already is a case. Look at common/system.cpp to find the
> implementation of
>    bool OSystem::setGraphicsMode(const char *name);

Ok.  But why does it replace the name "default" with "2x"?  I have
only a single mode called "default".  I have no mode called "2x".


  // Marcus






More information about the Scummvm-devel mailing list