Ver código fonte

Added warning about using compupted_size wrong

master
Patrick Jakobsen 7 meses atrás
pai
commit
2b7f37251e
1 arquivos alterados com 5 adições e 0 exclusões
  1. +5
    -0
      gui/gui.c

+ 5
- 0
gui/gui.c Ver arquivo

@ -143,6 +143,11 @@ typedef struct GUI_Node {
// True iff. it (and its children) should generate draw commands.
bool dirty;
// NOTE(Zelaven): Don't make decisions about visual things based on this.
// It will be a frame off, and with dirty-redrawing it will result in the
// error persisting on the screen.
// All sizing and positioning should be done using semantic sizes and
// offsets, and should be handled in offline layouting and positioning.
int computed_size[GUI_AXIS2_COUNT];
GUI_Rectangle rect; // NOTE(Zelaven): I have no better name for this.
} GUI_Node;

Carregando…
Cancelar
Salvar