[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] screen resolution
From: "Georg Potthast" ####@####.#### Date: 28 Aug 2011 21:02:22 -0000 Message-Id: <004c01cc65c5$c9eb3760$6a00a8c0@SCHREIBTISCHGP> 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. If you supply binary packages you want the user to be able to select these settings depending on his/her machine without recompiling. Is it possible to set these using an environment variable or else? Georg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] screen resolution
From: "Georg Potthast" ####@####.#### Date: 30 Aug 2011 19:01:26 -0000 Message-Id: <001101cc6747$35c56690$6a00a8c0@SCHREIBTISCHGP> Hi Greg, thank you for your message. I implemented the environment variable "NANOSCR" which my screen driver reads. It seems to work OK setting screen resolution and pixel type. Regards Georg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |