Mercurial > dwindows
comparison android/DWindows.kt @ 2539:822f814a54f4
Android: Fix memory corruption issue due to incorrectly allocating HPIXMAP.
Also call DWRender.invalidate() from the main thread incase it wants to
cause an immediate onDraw() ... but we don't need to wait for it.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 12 May 2021 06:17:22 +0000 |
parents | 1b3b40c89cd0 |
children | bb75e64e6138 |
comparison
equal
deleted
inserted
replaced
2538:1b3b40c89cd0 | 2539:822f814a54f4 |
---|---|
1833 return render | 1833 return render |
1834 } | 1834 } |
1835 | 1835 |
1836 fun renderRedraw(render: DWRender) | 1836 fun renderRedraw(render: DWRender) |
1837 { | 1837 { |
1838 render.invalidate() | 1838 runOnUiThread { |
1839 render.invalidate() | |
1840 } | |
1839 } | 1841 } |
1840 | 1842 |
1841 fun pixmapBitBlt(dstr: DWRender?, dstp: Bitmap?, dstx: Int, dsty: Int, dstw: Int, dsth: Int, | 1843 fun pixmapBitBlt(dstr: DWRender?, dstp: Bitmap?, dstx: Int, dsty: Int, dstw: Int, dsth: Int, |
1842 srcr: DWRender?, srcp: Bitmap?, srcy: Int, srcx: Int, srcw: Int, srch: Int): Int | 1844 srcr: DWRender?, srcp: Bitmap?, srcy: Int, srcx: Int, srcw: Int, srch: Int): Int |
1843 { | 1845 { |