Re: [AD] default values for get_desktop_resolution

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Friday 27 July 2007 10:32:28 pm Matthew Leverton wrote:
> There's no reason that the change has to be implemented like that. If
> the system drivers are aware of the "don't modify unless successful,"
> then the inline function wouldn't have to ever touch an uninitialized
> value. Thus we could still guarantee that the passed parameters will
> remain the same on failure by virtue of never changing them.

Yes, that's what I mean. Just having them not touched would be a better 
solution than storing potentially uninitialized values and restoring them on 
failure.




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/