nanogui: Re: screen resolution


Previous by date: 30 Aug 2011 04:18:18 -0000 Re: screen resolution, Georg Potthast
Next by date: 30 Aug 2011 04:18:18 -0000 Re: screen resolution, Georg Potthast
Previous in thread: 30 Aug 2011 04:18:18 -0000 Re: screen resolution, Georg Potthast
Next in thread: 30 Aug 2011 04:18:18 -0000 Re: screen resolution, Georg Potthast

Subject: Re: [nanogui] screen resolution
From: "Greg Haerr" ####@####.####
Date: 30 Aug 2011 04:18:18 -0000
Message-Id: <8F0CD0BD28054B5E927E0C9EF5301640@winXP>

: As far as I understand, the screen resolution and the pixtype have to be 
set
: in the makefile and you compile the package to that settings.

No for both.  The screen resolution is queried at runtime and
used dynamically.  Likewise, the pixel type is queried at runtime
and a screen subdriver selected for drawing that bpp (bits per pixel).
However, the particular subformat, e.g. RGB565 or RGB555 must
be set at compile time.  The same config entry also sets the internal
storage size used for GrReadArea and the like.  Currently, this is
a bit confusing and I hope to change this in the 0.93 release, where
the internal pixel size and subformat are specified seperately.


:
: If you supply binary packages you want the user to be able to select these
: settings depending on his/her machine without recompiling.

This should be no problem, the current nano-X server works this
way by dynamically querying the kernel on linux. (see drivers/scr_fb.c)


:
: Is it possible to set these using an environment variable or else?

nanox/srvmain.c uses -x # and -y # to specify the screen resolution
when running on top of X11.  Other options could easily be added
to scr_fb.c, by reading environment variables.

Regards,

Greg 


Previous by date: 30 Aug 2011 04:18:18 -0000 Re: screen resolution, Georg Potthast
Next by date: 30 Aug 2011 04:18:18 -0000 Re: screen resolution, Georg Potthast
Previous in thread: 30 Aug 2011 04:18:18 -0000 Re: screen resolution, Georg Potthast
Next in thread: 30 Aug 2011 04:18:18 -0000 Re: screen resolution, Georg Potthast


Powered by ezmlm-browse 0.20.