#include "TuiScreenProperty.h"
#include "TuiLayout.h"

#if defined(W1536)
#include "TuiLayout_w1536.h"
#endif

void initScreenProperty() {
	initLayout();
}

bool isScreenRotated() {
	if (getTuiMode() == COLDWALLET_TUI_MODE) {
		if (getScreenType() == SCREEN_TYPE_WINNER_MAIN)
			return true;

		if (getScreenType() == SCREEN_TYPE_TOP_MAIN)
			return true;
	}

	return false;
}

uint32_t getScreenWidth() {
	if (isScreenRotated())
		return SCREEN_HEIGHT;
	return SCREEN_WIDTH;
}

uint32_t getScreenHeight() {
	if (isScreenRotated())
		return SCREEN_WIDTH;
	return SCREEN_HEIGHT;
}
