From: Christopher M. <cpm...@co...> - 2007-03-13 08:36:15
|
Vincent Torri wrote: > I don't think that all the tests on _dpms_available are necessary. Your > program has to test it once, then do the necessary to not use the dpms > functions. > > Vincent > > > On Tue, 13 Mar 2007, Enlightenment CVS wrote: > >> Log Message: >> Fix up ecore_x_dpms...formatting, removed the static int's for dpms version >> as they are not used anywhere other than the init function. Added traps for >> dpms_available before calling any dpms functions. >> And if the calling program does not make those tests??? Segfault !!.. These are just simple int checks which are very fast todo and not expensive at all, plus give added safety to insure that dpms can be used before trying to make calls to it. I don't see the problem here.. dh |