Re: [AD] mode select dlg patch |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> Hmm, gfx_mode_select_user ? gfx_mode_select_filter ?
The latter is fine with me.
> The few lines which decides which color depths to use have two
> counters starting at zero, they should start at -1, or they'll
> fail to not add the first entry (8 bits) if it isn't available.
> I've only caught it because I filter out 8 bit modes.
This chunk?
@@ -440,8 +469,8 @@
}
}
- bpp_entry = 0;
- bpp_count = 0;
+ bpp_entry = -1;
+ bpp_count = -1;
while (bpp_count < index) {
bpp_entry++;
if (mode->bpp[bpp_entry]) bpp_count++;
--
Eric Botcazou