mirror of
https://github.com/openharmony/ace_engine_lite.git
synced 2026-07-19 13:31:06 -04:00
Move variable position.
Signed-off-by: benb365 <liuyongchang@seu.edu.cn>
This commit is contained in:
@@ -1094,11 +1094,11 @@ struct JSPageSpecific jsPageSpecific;
|
||||
|
||||
uint16_t GetHorizontalResolution()
|
||||
{
|
||||
constexpr uint16_t resConst = 454;
|
||||
// SCREENSIZE_SPECIFIED is temporarily set, when ui and graphic unifid, this can be removed
|
||||
#if ((defined __LITEOS__) || (defined __linux__) || (SCREENSIZE_SPECIFIED == 1))
|
||||
return Screen::GetInstance().GetWidth();
|
||||
#else
|
||||
constexpr uint16_t resConst = 454;
|
||||
uint16_t horizontalResolution = resConst;
|
||||
uint16_t verticalResolution = resConst;
|
||||
ProductAdapter::GetScreenSize(horizontalResolution, verticalResolution);
|
||||
|
||||
Reference in New Issue
Block a user