Jump to content

vrollei

Members
  • Posts

    16
  • Joined

  • Last visited

Posts posted by vrollei

  1. Hi,

    You are right it is c++ related error, it is error not warning.

    About gcc warnings:

    warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]

    Is it possible to add this and solve these all warnings:

    #if defined(__GNUC__)
    
    #pragma GCC diagnostic ignored "-Wduplicate-decl-specifier"
    
    #endif

     

     

  2. Joel,

    do you mean this:

     

    That language construct is perfectly valid C but some compilers incorrectly generate warnings for it.  This is actually a compiler bug caused by a misinterpretation of the C standard by the compiler writer. The most commonly known compiler with this bug is GCC.

    It looks like your compiler does one worse - it actually errors on it. Are you sure you just haven't set your compiler flags to error on all warnings?

    If not please send us the details of what compiler you are using so that we can put a special #ifdef around the code to account for its brokenness. I think the gfxconf option is something like GFX_OS_COMPILER_SHOW but check the gfxconf.example.h

  3. Hi,

    I have migrated to version 2.8 from version 2.7 and gdispGFillStringBox draws text differently from previous version.

    If I use result of gdispGetStringWidth for gdispGFillStringBox as cx parameter then text will be wrapped. So I need to add at least 2 pixels to the result of gdispGetStringWidth to get correct result.

     

     

  4. Hi!

    Get compilation error:

    In file included from ugfx_2.8/src/ginput/ginput_driver_mouse.h:23:0,
    
                     from main.cpp:37:
    
    ugfx_2.8/src/ginput/../gdriver/gdriver.h:91:33: error: duplicate 'const'
    
    typedef const struct GDriverVMT const GDriverVMTList[1];

     

     

    gcc version 7.2.1 20170904 (release) [ARM/embedded-7-branch revision 255204] (GNU Tools for Arm Embedded Processors 7-2017-q4-major)
    -std=c11

     

  5. Hello, Joel!

    Thanks for reply!

    I use this font:

     #define GDISP_INCLUDE_FONT_DEJAVUSANS20_AA       TRUE

     

    And set widget's font:

     

    dejavu_sans_20_anti_aliased = gdispOpenFont("DejaVuSans20_aa");

     

    gwinSetFont(ghPicker, dejavu_sans_20_anti_aliased);

     

    The result is chars with white dots in the corner and around the char.

     

    gdispGFillStringBox function works fine.

×
×
  • Create New...