{"action":"opened","issue":{"url":"https://api.github.com/repos/koral--/android-gif-drawable/issues/143","labels_url":"https://api.github.com/repos/koral--/android-gif-drawable/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/koral--/android-gif-drawable/issues/143/comments","events_url":"https://api.github.com/repos/koral--/android-gif-drawable/issues/143/events","html_url":"https://github.com/koral--/android-gif-drawable/issues/143","id":66040866,"number":143,"title":"First frame white when using GifDrawable.draw to draw directly on surface.","user":{"login":"macgrr","id":3696805,"avatar_url":"https://avatars.githubusercontent.com/u/3696805?v=3","gravatar_id":"","url":"https://api.github.com/users/macgrr","html_url":"https://github.com/macgrr","followers_url":"https://api.github.com/users/macgrr/followers","following_url":"https://api.github.com/users/macgrr/following{/other_user}","gists_url":"https://api.github.com/users/macgrr/gists{/gist_id}","starred_url":"https://api.github.com/users/macgrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macgrr/subscriptions","organizations_url":"https://api.github.com/users/macgrr/orgs","repos_url":"https://api.github.com/users/macgrr/repos","events_url":"https://api.github.com/users/macgrr/events{/privacy}","received_events_url":"https://api.github.com/users/macgrr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-03T00:34:49Z","updated_at":"2015-04-03T00:34:49Z","closed_at":null,"body":"I'm currently using GifDrawable.draw to draw directly to a Surface.\r\nI have a runnable that draws to a surface at a rate of gif duration / total frames.\r\nThe important parts of my code below:\r\nprivate void draw() {\r\n    SurfaceHolder surfaceHolder = getSurfaceHolder();\r\n    Canvas canvas = surfaceHolder.lockCanvas();\r\n    mGifDrawable.draw(canvas);\r\n    surfaceHolder.unlockCanvasAndPost(canvas);\r\n}\r\n\r\nI'm seeing an issue with the attached GIF where on the first frame of the GIF it flashes a white screen.\r\nTo be more specific, I'm seeing anything from no white screen (expected behavior) to partial white screen (usually top or bottom) to full white screen.\r\nI created this GIF using GIMP, using animated gif option, 30ms delay, and the rest are default animated gif export settings.\r\n\r\n![001](https://cloud.githubusercontent.com/assets/3696805/6976202/1c6bf594-d95b-11e4-806f-04f3776ff82f.gif)"}}