[Scummvm-devel] Features and graphics modes

Marcus Comstedt marcus at mc.pp.se
Sat Mar 13 07:17:01 CET 2004


Max Horn <max at quendi.de> writes:

> The problem is that it's near impossible to define what is "default"
> for all given backends. And not all backends will want to add
> "default" to the list of their scalers (e.g. for the SDL backend this
> wouldn't make sense).
>
> I guess a "proper" fix for this might be to define a special
> "kDefaultScalerMode" or whatever constant, which then can be passed to
> setGraphicsMode, i.e. setGraphicsMode() could be changed to
> setGraphicsMode.
>    if (mode == "default")
>       setGraphicsMode(kDefaultScalerMode);
>    else ..


Either that, or simply require that the first mode in the list
returned by getSupportedGraphicsModes() is the "default" one:

  if (mode == "default")
     setGraphicsMode(gm[0].id);
  else ...



  // Marcus






More information about the Scummvm-devel mailing list