Merge pull request #2524 from dreampiggy/fix_graphics_helper_bug
Fix the `SDGraphicsBeginImageContext` method recursive call issue
This commit is contained in:
commit
205ce2af9a
|
@ -46,7 +46,7 @@ CGContextRef SDGraphicsGetCurrentContext(void) {
|
||||||
|
|
||||||
void SDGraphicsBeginImageContext(CGSize size) {
|
void SDGraphicsBeginImageContext(CGSize size) {
|
||||||
#if SD_UIKIT || SD_WATCH
|
#if SD_UIKIT || SD_WATCH
|
||||||
SDGraphicsBeginImageContext(size);
|
UIGraphicsBeginImageContext(size);
|
||||||
#else
|
#else
|
||||||
SDGraphicsBeginImageContextWithOptions(size, NO, 1.0);
|
SDGraphicsBeginImageContextWithOptions(size, NO, 1.0);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue