cancel
Showing results for 
Search instead for 
Did you mean: 

touchgfx simulator screen size scaling factor

wonderFine
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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? 

Mohammad MORADI
ST Software Developer | TouchGFX

View solution in original post

4 REPLIES 4

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? 

Mohammad MORADI
ST Software Developer | TouchGFX
GaetanGodart
ST Employee

Hello @wonderFine ,


Have you been able to move forward on your project?

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

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%

thanks for your concern, the problem solved