Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,15 +341,17 @@ gdip_bitmapdata_property_add(ActiveBitmapData *bitmap_data, PROPID id, ULONG len
GpStatus
gdip_bitmapdata_property_remove_id(ActiveBitmapData *bitmap_data, PROPID id)
{
int i;
if (!bitmap_data->property_count) {
return GenericError;
}

for (i = 0; i < bitmap_data->property_count; i++) {
for (int i = 0; i < bitmap_data->property_count; i++) {
if (bitmap_data->property[i].id == id) {
return gdip_bitmapdata_property_remove_index(bitmap_data, i);
}
}

return GenericError;
return PropertyNotFound;
}

GpStatus
Expand Down
2 changes: 1 addition & 1 deletion src/gdipluspixelformats.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ typedef enum {
DitherTypeDualSpiral8x8 = 8,
DitherTypeErrorDiffusion = 9,
DitherTypeMax = 10
}
} DitherType;
#endif //(GDIPVER >= 0x0110)

typedef enum {
Expand Down
Loading