Home
last modified time | relevance | path

Searched refs:WBAR_SCALE (Results 1 – 5 of 5) sorted by relevance

/dports/games/warzone2100/warzone2100/lib/widget/
H A Dbar.cpp71 ASSERT(init->size <= WBAR_SCALE, "Bar size out of range"); in W_BARGRAPH()
105 psBGraph->minorSize = MIN(WBAR_SCALE * iValue / MAX(psBGraph->iRange, 1), WBAR_SCALE); in widgSetMinorBarSize()
166 x1 = x0 + psWidget->width() * psBGraph->majorSize / WBAR_SCALE; in barGraphDisplay()
172 x0 = x1 - psWidget->width() * psBGraph->majorSize / WBAR_SCALE; in barGraphDisplay()
179 y1 = y0 + psWidget->height() * psBGraph->majorSize / WBAR_SCALE; in barGraphDisplay()
185 y0 = y1 - psWidget->height() * psBGraph->majorSize / WBAR_SCALE; in barGraphDisplay()
209 x1 = x0 + psWidget->width() * psBGraph->majorSize / WBAR_SCALE; in barGraphDisplayDouble()
215 x3 = x2 + psWidget->width() * psBGraph->minorSize / WBAR_SCALE; in barGraphDisplayDouble()
222 x0 = x1 - psWidget->width() * psBGraph->majorSize / WBAR_SCALE; in barGraphDisplayDouble()
228 x2 = x3 - psWidget->width() * psBGraph->minorSize / WBAR_SCALE; in barGraphDisplayDouble()
[all …]
H A Dwidget.h227 #define WBAR_SCALE 100 macro
/dports/games/warzone2100/warzone2100/src/
H A Dintdisplay.h35 #define POWERBAR_SCALE (5 * WBAR_SCALE/STAT_PROGBARWIDTH)
H A Ddesign.cpp865 if (sBarInit.size > WBAR_SCALE) in intAddTemplateButtons()
867 sBarInit.size = WBAR_SCALE; in intAddTemplateButtons()
H A Dintdisplay.cpp110 barGraph->majorSize = PERNUM(WBAR_SCALE, clip(value, 0, range), range); in setBarGraphValue()