Skip to content
Snippets Groups Projects
Select Git revision
  • 724c884bcdc1679e03d40ae01c7c7bd40681e05c
  • ctx default
  • master protected
  • rahix/bhi160-cleanup
  • schneider/ble-hid
  • schneider/bsec
  • schneider/212-reset-hardware-when-entering-repl
  • schneider/exnostat-remove-gapple
  • schneider/g-watch
  • schneider/ble-time
  • schneider/bonding-fail-if-full
  • schneider/bonding-naming
  • schneider/rng-btle
  • schneider/trng-enable-fix
  • schneider/sdk-0.2.1-12
  • schneider/ble-critical-section
  • schneider/covid-tracing
  • schneider/ble-fixes-2020-3
  • schneider/spo2-playground
  • schneider/mpy-portstate
  • schneider/fix-ble-mac-write
  • v1.15
  • v1.14
  • v1.13
  • v1.12
  • v1.11
  • v1.10
  • v1.9
  • v1.8
  • v1.7
  • v1.6
  • v1.5
  • v1.4
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • release-1
  • bootloader-v1
  • v0.0
40 results

ctx.c

Blame
  • Forked from card10 / firmware
    Source project has a limited visibility.
    ctx.c 1.40 KiB
    #include <math.h>
    #include <stddef.h>
    #include <stdlib.h>
    #include <stdint.h>
    
    #define CTX_MIN_EDGE_LIST_SIZE 256
    #define CTX_MAX_EDGE_LIST_SIZE 512
    #define CTX_MIN_JOURNAL_SIZE   512
    #define CTX_MAX_JOURNAL_SIZE   512 // Doesn't really get used - since
                                       // we at the moment render synchronously
    				   // from the data provided by core1
    #define CTX_LIMIT_FORMATS       1
    #define CTX_DITHER              1
    #define CTX_ENABLE_RGB565_BYTESWAPPED 1
    #define CTX_BITPACK_PACKER      0
    #define CTX_COMPOSITING_GROUPS  0
    #define CTX_RENDERSTREAM_STATIC 0
    #define CTX_GRADIENT_CACHE      1
    #define CTX_ENABLE_CLIP         1
    #define CTX_BLOATY_FAST_PATHS   0
    #define CTX_1BIT_CLIP           1
    #define CTX_RASTERIZER_AA       3
    #define CTX_RASTERIZER_FORCE_AA 1
    #define CTX_SHAPE_CACHE         0
    #define CTX_SHAPE_CACHE_DIM     16*18
    #define CTX_SHAPE_CACHE_ENTRIES 128
    #define CTX_RASTERIZER_MAX_CIRCLE_SEGMENTS 36
    #define CTX_RASTERIZER          1
    #define CTX_EVENTS              0
    #define CTX_STRINGPOOL_SIZE     512
    #define CTX_ENABLE_SHADOW_BLUR  0
    #define CTX_FORMATTER           0
    #define CTX_PARSER              0
    #define CTX_FONTS_FROM_FILE     0
    #define CTX_IMPLEMENTATION
    #define _CTX_INTERNAL_FONT_   // defining this causes the internal font to be dropped
    #include "ctx-font-regular.h" // font-regular contains the same outlines but more
                                  // glyphs
    #include "ctx.h"