Skip to main content
Associate II
Oct 19, 2024 8:11 AM UTC
Solved

touchgfx simulator screen size scaling factor

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.

    This topic has been closed for replies.
    ST Employee
    Oct 21, 2024 1:46 PM UTC

    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 MORADIST Software Developer | TouchGFX

    4 replies

    ST Employee
    Oct 21, 2024 1:46 PM UTC

    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 MORADIST Software Developer | TouchGFX
    Associate II
    Dec 8, 2024 2:37 PM UTC

    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
    ST Employee
    Nov 11, 2024 1:07 PM UTC

    Hello @wonderFine ,


    Have you been able to move forward on your project?

     

    Regards,

    Gaetan GodartSoftware engineer at ST (TouchGFX)
    Associate II
    Dec 8, 2024 2:38 PM UTC

    thanks for your concern, the problem solved