Merge pull request #2524 from dreampiggy/fix_graphics_helper_bug

Fix the `SDGraphicsBeginImageContext` method recursive call issue
This commit is contained in:
Bogdan Poplauschi 2018-11-11 21:35:54 -06:00 committed by GitHub
commit 205ce2af9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ CGContextRef SDGraphicsGetCurrentContext(void) {
void SDGraphicsBeginImageContext(CGSize size) {
#if SD_UIKIT || SD_WATCH
SDGraphicsBeginImageContext(size);
UIGraphicsBeginImageContext(size);
#else
SDGraphicsBeginImageContextWithOptions(size, NO, 1.0);
#endif