FireBirdLib - Topfield TMS PVR TAP Programming Library
OSDDrawMemo.c
Go to the documentation of this file.
1#include "FBLib_TMSOSDMenu.h"
2
3void OSDDrawMemo(void)
4{
6
7 int dLines, i;
8 dword Y;
9 tMenu *pMenu;
10
11 pMenu = &Menu[CurrentMenuLevel];
12
13 dLines = (pMenu->NrLines == 18 ? 20 : 24);
14
15 //The background
16 TAP_Osd_Draw3dBoxFill(OSDRgn, pMenu->XPos, 96, pMenu->Width, 368, RGB(30, 30, 30), RGB(30, 30, 30), RGB(30, 30, 30));
17
18 for(i = 0; i < pMenu->NrLines; i++)
19 {
20 Y = 99 + (i * dLines);
21
22 //The text of the left column
23 if((i + pMenu->CurrentTopIndex) < pMenu->NrItems)
24 FMUC_PutStringAA(OSDRgn, pMenu->XPos + 16, Y + 5 + FONTYOFFSET, pMenu->XPos + pMenu->Width - 15, pMenu->Item[i + pMenu->CurrentTopIndex].Name, RGB(255, 255, 255), COLOR_None, pMenu->FontMemo, TRUE, ALIGN_LEFT, 1);
25 }
26
28
29 TRACEEXIT();
30}
#define FONTYOFFSET
tMenu Menu[NRMENULEVELS]
Definition: OSDMenuInit.c:6
dword CurrentMenuLevel
Definition: OSDMenuInit.c:7
word OSDRgn
Definition: OSDMenuInit.c:4
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)
void OSDDrawMemo(void)
Definition: OSDDrawMemo.c:3
@ OSDCB_List
Definition: libFireBird.h:2792
#define TRACEEXIT()
Definition: libFireBird.h:1244
@ Y
Definition: libFireBird.h:291
#define TRACEENTER()
Definition: libFireBird.h:1243
char Name[ITEMNAMESIZE]
void(* CallbackProcedure)(tOSDCB OSDCBType, word OSDRgn)
dword XPos
dword Width
int CurrentTopIndex
tItem * Item
tFontDataUC * FontMemo