[4/7] WineD3D: Macroize CheckDeviceFormat to reduce code duplication

Alexandre Julliard julliard at winehq.org
Thu Apr 3 05:07:10 CDT 2008


Stefan Dösinger <stefan at codeweavers.com> writes:

> The main idea is to avoid that we have screen-sized code sections in this 
> function that look exactly the same. This should make navigation in the code 
> easier

It would be even better with an array of flag->function mappings and a
simple loop over the flags to check.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list