Mercurial > geeqie.yaz
comparison src/image-overlay.c @ 1177:5a20c47e7a14
Fix up unsigned expression always true/false warnings.
author | zas_ |
---|---|
date | Tue, 25 Nov 2008 17:01:03 +0000 |
parents | 1646720364cf |
children | f6449c17306b |
comparison
equal
deleted
inserted
replaced
1176:d3e51e1a02f8 | 1177:5a20c47e7a14 |
---|---|
1077 { | 1077 { |
1078 OverlayStateData *osd = image_get_osd_data(imd); | 1078 OverlayStateData *osd = image_get_osd_data(imd); |
1079 | 1079 |
1080 if (!osd) return; | 1080 if (!osd) return; |
1081 | 1081 |
1082 if (flag < IMAGE_OSD_NONE || flag >= IMAGE_OSD_COUNT) return; | 1082 if (flag >= IMAGE_OSD_COUNT) return; |
1083 if (duration < 0) duration = IMAGE_OSD_DEFAULT_DURATION; | 1083 if (duration < 0) duration = IMAGE_OSD_DEFAULT_DURATION; |
1084 if (duration > 1) duration += 1; | 1084 if (duration > 1) duration += 1; |
1085 | 1085 |
1086 osd->icon_time[flag] = duration; | 1086 osd->icon_time[flag] = duration; |
1087 | 1087 |