* Handle APP_CMD_CONFIG_CHANGED */
| 116 | * Handle APP_CMD_CONFIG_CHANGED |
| 117 | */ |
| 118 | void CameraEngine::OnAppConfigChange(void) { |
| 119 | int newRotation = GetDisplayRotation(); |
| 120 | |
| 121 | if (newRotation != rotation_) { |
| 122 | OnAppTermWindow(); |
| 123 | |
| 124 | rotation_ = newRotation; |
| 125 | OnAppInitWindow(); |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | /** |
| 130 | * Retrieve saved native window width. |