{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/Win2D/issues/127","labels_url":"https://api.github.com/repos/Microsoft/Win2D/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/Win2D/issues/127/comments","events_url":"https://api.github.com/repos/Microsoft/Win2D/issues/127/events","html_url":"https://github.com/Microsoft/Win2D/issues/127","id":100815526,"number":127,"title":"Issues with CanvasLayer and transparency on Nokia 630","user":{"login":"pleaseking","id":2921348,"avatar_url":"https://avatars.githubusercontent.com/u/2921348?v=3","gravatar_id":"","url":"https://api.github.com/users/pleaseking","html_url":"https://github.com/pleaseking","followers_url":"https://api.github.com/users/pleaseking/followers","following_url":"https://api.github.com/users/pleaseking/following{/other_user}","gists_url":"https://api.github.com/users/pleaseking/gists{/gist_id}","starred_url":"https://api.github.com/users/pleaseking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pleaseking/subscriptions","organizations_url":"https://api.github.com/users/pleaseking/orgs","repos_url":"https://api.github.com/users/pleaseking/repos","events_url":"https://api.github.com/users/pleaseking/events{/privacy}","received_events_url":"https://api.github.com/users/pleaseking/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-13T16:41:48Z","updated_at":"2015-08-13T17:12:31Z","closed_at":null,"body":"I can see some weird behavior on Nokia 630. I need to draw a number of text strings over background, and the way I am doing it is the following (simplified):\r\n - create a layer to clip text to specific region\r\n - draw text\r\n - dispose layer\r\n\r\nIt all works just fine except on Nokia 630 where it produces graphical artifacts - like arbitrary lines and boxes, text not visible, etc - it seems it is related to background being completely transparent but I am not 100% sure. \r\n\r\nThe workaround I found is to use `CreateLayer` with `CanvasLayerOptions::InitializeFromBackground` - this makes code work on Nokia 630 too. However, this leads to problems when the background is not opaque - alpha gets doubled when layer is blended back to canvas.\r\n\r\nSo two questions: \r\n - are there any known issues with Nokia 630?\r\n - is there any way to improve my workaround to support non-opaque backgrounds? "},"comment":{"url":"https://api.github.com/repos/Microsoft/Win2D/issues/comments/130764277","html_url":"https://github.com/Microsoft/Win2D/issues/127#issuecomment-130764277","issue_url":"https://api.github.com/repos/Microsoft/Win2D/issues/127","id":130764277,"user":{"login":"shawnhar","id":8118468,"avatar_url":"https://avatars.githubusercontent.com/u/8118468?v=3","gravatar_id":"","url":"https://api.github.com/users/shawnhar","html_url":"https://github.com/shawnhar","followers_url":"https://api.github.com/users/shawnhar/followers","following_url":"https://api.github.com/users/shawnhar/following{/other_user}","gists_url":"https://api.github.com/users/shawnhar/gists{/gist_id}","starred_url":"https://api.github.com/users/shawnhar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawnhar/subscriptions","organizations_url":"https://api.github.com/users/shawnhar/orgs","repos_url":"https://api.github.com/users/shawnhar/repos","events_url":"https://api.github.com/users/shawnhar/events{/privacy}","received_events_url":"https://api.github.com/users/shawnhar/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T17:12:31Z","updated_at":"2015-08-13T17:12:31Z","body":"Clipping to a rectangle (using the CreateLayer overload that takes a rect rather than a CanvasGeometry, and specifying alpha = 1) ends up calling the D2D PushAxisAlignedClip API, as opposed to the full PushLayer.\r\n\r\nAre you seeing the same rendering issues when using that overload?   I don't expect PushAxisAlignedClip to hit this driver bug."}}