Skip to main content
Associate III
October 20, 2023
Question

Change of display format in run mode

  • October 20, 2023
  • 1 reply
  • 1304 views

Hi,

I have read all the posts here about the changning of display format to 90° in run mode but it seems also not work!

i will put here two images for the both modes (Landscape & Portrait) to see the issue which happend.

 

CH66-1.jpgCH66-2.jpg

I have added this screen_orientation := -rotate90 in the app.mk file then i called this function while the button is being clicked:

 

application().gotoScreenWaitingConnectionPortraitScreenNoTransition();
HAL::getInstance()->setDisplayOrientation(ORIENTATION_PORTRAIT);

 

It seems that the images are not rotated. Is there anything else I should do?

Note: the second screen designed in portrait mode.

Regards,

Mahdi

This topic has been closed for replies.

1 reply

MM..1
Chief III
October 20, 2023

Images in memory is stored and optimized for speed load, then for change orientation you must store all not rotable entities in two variants. This is normal ... or  second variants is use displays with config registers for orientation...