7 int i, YText, hL, dLines;
8 dword XStart, XEnd, yT, yL;
13 dword MaxNameIconWidth, MaxValueIconWidth;
20 MaxValueIconWidth = 0;
21 for(i = 0; i < pMenu->
NrItems; i++)
25 if(pMenu->
Item[i].
ColorPatch && (MaxValueIconWidth < 50)) MaxValueIconWidth = 50;
28 if(MaxNameIconWidth) MaxNameIconWidth += 8;
29 if(MaxValueIconWidth) MaxValueIconWidth += 8;
52 TAP_Osd_Draw3dBoxFill(
OSDRgn, pMenu->
XPos, 96, pMenu->
Width, pMenu->
NrLines * dLines - 2, RGB(30, 30, 30), RGB(30, 30, 30), RGB(30, 30, 30));
54 for(i = 0; i < pMenu->
NrLines; i++)
56 yL = 96 + (i * dLines);
58 TAP_Osd_DrawRectangle(
OSDRgn, pMenu->
XPos, yL + hL, pMenu->
Width, 2, 1, RGB(16, 16, 16));
79 yT = YText + (i * dLines);
84 ItemColor = RGB(128, 128, 140);
126 FMUC_PutStringAA(
OSDRgn, pMenu->
XPos + 11, yT + 5 +
FONTYOFFSET, MaxX, s, ItemColor, COLOR_None, pMenu->
FontListLineNumber, FALSE, ALIGN_LEFT, 1);
130 XStart = pMenu->
XPos + 16;
138 if (pItem->
drawName)
FMUC_PutStringAA(
OSDRgn, XStart + MaxNameIconWidth, yT + 5 +
FONTYOFFSET, XEnd, pItem->
Name, pItem->
Selectable ? pItem->
NameColor : ItemColor, COLOR_None, pMenu->
FontListNameColumn, TRUE, ALIGN_LEFT, 1);
143 if (pItem->
drawValue)
FMUC_PutStringAA(
OSDRgn, pMenu->
ValueXPos + 30 + pMenu->
ValueXOffset + MaxValueIconWidth, yT + 5 +
FONTYOFFSET, pMenu->
XPos + pMenu->
Width - 15, pItem->
Value, ItemColor, COLOR_None, pMenu->
FontListValueColumn, TRUE, ALIGN_LEFT, 1);
149 TAP_Osd_DrawRectangle(
OSDRgn, pMenu->
ValueXPos + 30 + pMenu->
ValueXOffset, yL + ((hL - 18) >> 1) + 1, 50, 18, 1, RGB(192,192,192));
160 if (!ItemRgn) ItemRgn = TAP_Osd_Create(0, 0, pMenu->
Width, hL, 0, OSD_Flag_MemRgn);
162 TAP_Osd_Copy(
OSDRgn, ItemRgn, pMenu->
XPos, yL, pMenu->
Width, hL, 0, 0, FALSE);
164 TAP_Osd_Copy(ItemRgn,
OSDRgn, 0, 0, pMenu->
Width, hL, pMenu->
XPos, yL, FALSE);
169 if (ItemRgn) TAP_Osd_Delete(ItemRgn);
void FMUC_PutStringAA(word rgn, dword x, dword y, dword maxX, const char *str, dword fcolor, dword bcolor, tFontDataUC *FontData, byte bDot, byte align, float AntiAliasFactor)
TYPE_GrData * pNameIconGd
char Value[ITEMVALUESIZE]
TYPE_GrData * pValueIconGd