Re: [AD] default values for get_desktop_resolution |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: Coordination of admins/developers of the game programming library Allegro <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] default values for get_desktop_resolution
- From: Chris Robinson <chris.kcat@xxxxxxxxxx>
- Date: Fri, 27 Jul 2007 22:38:38 -0700
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.