(final Context context, int width, int height)
| 335 | } |
| 336 | |
| 337 | private void setupWidgets(final Context context, int width, int height) |
| 338 | { |
| 339 | mHeight = height; |
| 340 | mWidth = width; |
| 341 | |
| 342 | nativeCleanWidgets(); |
| 343 | updateBottomWidgetsOffset(context, mBottomWidgetOffsetX, mBottomWidgetOffsetY); |
| 344 | if (mDisplayType == DisplayType.Device) |
| 345 | { |
| 346 | nativeSetupWidget(WIDGET_SCALE_FPS_LABEL, Utils.dimen(context, R.dimen.margin_base), |
| 347 | Utils.dimen(context, R.dimen.margin_base) * 2, ANCHOR_LEFT_TOP); |
| 348 | updateCompassOffset(context, mCurrentCompassOffsetX, mCurrentCompassOffsetY, false); |
| 349 | } |
| 350 | else |
| 351 | { |
| 352 | nativeSetupWidget(WIDGET_SCALE_FPS_LABEL, (float) mWidth / 2 + Utils.dimen(context, R.dimen.margin_base) * 2, |
| 353 | Utils.dimen(context, R.dimen.margin_base), ANCHOR_LEFT_TOP); |
| 354 | updateCompassOffset(context, mWidth, mCurrentCompassOffsetY, true); |
| 355 | } |
| 356 | } |
| 357 | |
| 358 | private void updateRulerOffset(final Context context, int offsetX, int offsetY) |
| 359 | { |
no test coverage detected