- OrientationStatus status = GetOrientationStatus();
- if (status == ORIENTATION_STATUS_PORTRAIT ||
- status == ORIENTATION_STATUS_PORTRAIT_REVERSE)
- {
- AppLogDebug("ORIENTATION_STATUS : PORTRAIT");
- Rectangle clientRect = GetClientAreaBounds();
- Rectangle rect = GetBounds();
- __pGallery->SetBounds(Rectangle(0, -clientRect.y, rect.width, rect.height));
- __pPlayButton->SetBounds(RECT_CONTORL_BUTTON_PLAY);
- __pScrollPanel->SetBounds(RECT_DETAILS_CONTORL_PANEL);
- }
- else if (status == ORIENTATION_STATUS_LANDSCAPE ||
- status == ORIENTATION_STATUS_LANDSCAPE_REVERSE)
- {
- AppLogDebug("ORIENTATION_STATUS : LANDSCAPE");
- Rectangle clientRect = GetClientAreaBounds();
- Rectangle rect = GetBounds();
- __pGallery->SetBounds(Rectangle(0, -clientRect.y, rect.width, rect.height));
- __pPlayButton->SetBounds(RECT_LANDSCAP_CONTORL_BUTTON_PLAY);
- __pScrollPanel->SetBounds(RECT_LANDSCAPE_DETAILS_CONTORL_PANEL);
- }
+
+ Rectangle clientRect = GetClientAreaBounds();
+ Rectangle rect = GetBounds();
+
+ __pGallery->SetBounds(Rectangle(0, -clientRect.y, rect.width, rect.height));
+ __pScrollPanel->SetBounds(Rectangle(0, 0, clientRect.width, clientRect.height));
+ __pPlayButton->SetBounds(Rectangle(clientRect.width / 2 - 80, clientRect.height / 2 - 80, 160, 160));