Stefano Ceccherini <stefano.ceccherini@xxxxxxxxx> wrote: > 2009/8/16 Bruno Albuquerque <bga@xxxxxxxxxxxxx>: > > I am seeing a behaviour with BScreen that I think is not correct > > but I > > am not sure. if you just call SetMode(&mode), the resolution > > changes as > > expected but if you switch to a new workspace and back, the > > resolution > > is reset to the default workspace resolution. > > > > SetMode() does accept an extra flag that, according to the Be Book, > > makes the resolution change become the default resolution for the > > workspace: SetMode(&mode, true). > > > > The problem with this is that most programs that use BScreen (I am > > talking about games) only want to set the resolution while they are > > running but they do want to make sure that the resolution will be > > restored on workspace switch. > > > > Should this flag be really used for this purpose? If not, is this a > > problem with our BScreen? > I think it's a problem of our BScreen implementation (server side, > actually): the makedefault parameter means that the settings are > preserved between reboots (if true). Otherwise, settings should be > preserved between workspace switches but not between reboots. Indeed, though I would prefer to bind that to the app in question, so that the mode is also reverted when the app quits. Bye, Axel.