From: Petr V. <VAN...@vc...> - 2001-06-14 17:49:49
|
On 14 Jun 01 at 10:46, James Simmons wrote: > > > They return a error instead. Also what is the policy for cards that can't > > > change modes. Right now most drivers return a -EINVAL if they can't change > > > a mode. Do we pass back the only mode the driver supports instead of > > > returning a error? > > > > If your vesafb runs in 1280x1024x32, setting 800x600x8 must > > succeed, but do nothing. > > So a userland app would assume the video mode is 800x600x8 since it worked > and was passed back it. Of course the results on the screen would be > totally wrong. Then how is a userland app to know what the real mode is? No. fb_set_var must return 1280x1024x32... (argument to fb_set_var is not const...). Of course I know no app which verifies what fb_set_var really did - but it is another problem. Petr |