Mercurial > dwindows
comparison android/dw.cpp @ 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 | 7127de139acf |
comparison
equal
deleted
inserted
replaced
2686:95f61d3f3d0d | 2687:42ff9d95e87b |
---|---|
5807 // Call the method on the object | 5807 // Call the method on the object |
5808 jlong dimensions = env->CallLongMethod(_dw_obj, windowGetPreferredSize, handle); | 5808 jlong dimensions = env->CallLongMethod(_dw_obj, windowGetPreferredSize, handle); |
5809 if(_dw_jni_check_exception(env)) | 5809 if(_dw_jni_check_exception(env)) |
5810 dimensions = 0; | 5810 dimensions = 0; |
5811 if(width) | 5811 if(width) |
5812 *width = (int)((dimensions >> 32) & 0xFFFF); | 5812 *width = (int)(dimensions & 0xFFFF); |
5813 if(height) | 5813 if(height) |
5814 *height = (int)(dimensions & 0xFFFF); | 5814 *height = (int)((dimensions >> 32) & 0xFFFF); |
5815 } | 5815 } |
5816 else | 5816 else |
5817 { | 5817 { |
5818 if(width) | 5818 if(width) |
5819 *width = 0; | 5819 *width = 0; |