Skip to main content
Associate II
October 19, 2024
Solved

touchgfx simulator screen size scaling factor

  • October 19, 2024
  • 2 replies
  • 920 views

hi,

    Recently I notice that toucgfx simulator screen size is twice the value set in toucgfx designer, if I want the exact pixel size set in touchgfx designer while simulating, is there a scaling factor or some function to call?

 

thanks for your time.

Best answer by Mohammad MORADI ESFAHANIASL

Hello @wonderFine,

TouchGFX simulator is based on the display size that is set in your project. You can validate the set dimensions by navigating through 
generated\gui_generated\include\gui_generated\common

and checking the SIM_WIDTH and SIM_HEIGHT that are defined in SimConstants.hpp

In addition, you can follow the execution of the simulator if you open the Application.sln file that is generated inside:

simulator\msvs

So, there is no scaling factor or function, and the simulator window should be as large as the your defined display.

Please, send a screenshot of the problem and explain more about your procedure of creating your project. Are you using the available board setups in the TouchGFX Designer? Are you developing on a custom board? 

2 replies

ST Employee
October 21, 2024

Hello @wonderFine,

TouchGFX simulator is based on the display size that is set in your project. You can validate the set dimensions by navigating through 
generated\gui_generated\include\gui_generated\common

and checking the SIM_WIDTH and SIM_HEIGHT that are defined in SimConstants.hpp

In addition, you can follow the execution of the simulator if you open the Application.sln file that is generated inside:

simulator\msvs

So, there is no scaling factor or function, and the simulator window should be as large as the your defined display.

Please, send a screenshot of the problem and explain more about your procedure of creating your project. Are you using the available board setups in the TouchGFX Designer? Are you developing on a custom board? 

Associate II
December 8, 2024

thanks for your kindly help. It turns out that it's my computer screen display scale factor was set by 200%, the pixels set by touchgfx designer is exactly the same with that of computer screen when set by 100%

GaetanGodart
Technical Moderator
November 11, 2024

Hello @wonderFine ,


Have you been able to move forward on your project?

 

Regards,

Associate II
December 8, 2024

thanks for your concern, the problem solved