Re: [PATCH v15 0/4] MR4661: gdiplus: Implement Gdiplus effects
18 Jan
2024
18 Jan
'24
8:45 p.m.
Esme Povirk (@madewokherd) commented about dlls/gdiplus/image.c:
+ else if (IsEqualGUID(&guid, &ColorBalanceEffectGuid)) + { + ef = malloc(sizeof(CGpEffect)); + ef->type = ColorBalanceEffect; + } + else if (IsEqualGUID(&guid, &LevelsEffectGuid)) + { + ef = malloc(sizeof(CGpEffect)); + ef->type = LevelsEffect; + } + else if (IsEqualGUID(&guid, &ColorCurveEffectGuid)) + { + ef = malloc(sizeof(CGpEffect)); + ef->type = ColorCurveEffect; + } + else This could be simplified by moving the `malloc` call to after the big if statement, and storing the type in a local variable.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/4661#note_58019
778
Age (days ago)
778
Last active (days ago)
0 comments
1 participants
participants (1)
-
Esme Povirk (@madewokherd)