Mercurial > dwindows
comparison android/DWindows.kt @ 2687:42ff9d95e87b
Android: Fix the logic error, had height and width reversed in bitfields.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 27 Oct 2021 23:26:44 +0000 |
parents | 95f61d3f3d0d |
children | c359cbd0b20f |
comparison
equal
deleted
inserted
replaced
2686:95f61d3f3d0d | 2687:42ff9d95e87b |
---|---|
1252 retval = width.toLong() or (height.toLong() shl 32) | 1252 retval = width.toLong() or (height.toLong() shl 32) |
1253 if(window is SeekBar) { | 1253 if(window is SeekBar) { |
1254 val slider = window as SeekBar | 1254 val slider = window as SeekBar |
1255 | 1255 |
1256 // If the widget is rotated, swap width and height | 1256 // If the widget is rotated, swap width and height |
1257 if(slider.rotation != 270F && slider.rotation != 90F) { | 1257 if(slider.rotation == 270F || slider.rotation == 90F) { |
1258 retval = height.toLong() or (width.toLong() shl 32) | 1258 retval = height.toLong() or (width.toLong() shl 32) |
1259 } | 1259 } |
1260 } | 1260 } |
1261 } | 1261 } |
1262 return retval | 1262 return retval |