FireBirdLib - Topfield TMS PVR TAP Programming Library
OSDMenuProgressBarShow.c
Go to the documentation of this file.
1#include <string.h>
2#include "FBLib_TMSOSDMenu.h"
3
4#define PROGRESSBARX 234
5#define PROGRESSBARY 330
6
7void OSDMenuProgressBarShow(const char *Title, const char *Text, dword Value, dword MaxValue, TYPE_GrData *DifferentProgressBar)
8{
10
11 if(Value != ProgressBarLastValue)
12 {
13 OSDMenuInfoBoxShow(Title, Text, 0x7fffffff);
15 {
16 ProgressBarOSDRgn = TAP_Osd_Create(PROGRESSBARX, PROGRESSBARY, _InputBox_Gd.width, _InputBox_Gd.height, 0, 0);
17 ProgressBarFullRgn = TAP_Osd_Create(0, 0, _Progressbar_Gd.width, _Progressbar_Gd.height, 0, OSD_Flag_MemRgn);
18 }
19 TAP_Osd_PutGd(ProgressBarFullRgn, 0, 0, (DifferentProgressBar ? DifferentProgressBar : &_Progressbar_Gd), FALSE);
20 TAP_Osd_PutGd(ProgressBarOSDRgn, 0, 0, &_InputBox_Gd, FALSE);
21 TAP_Osd_Copy(ProgressBarFullRgn, ProgressBarOSDRgn, 0, 0, _InputBox_Gd.width * Value / MaxValue, _InputBox_Gd.height, 0, 0, FALSE);
22 TAP_Osd_Sync();
24 }
25
26 TRACEEXIT();
27}
word ProgressBarFullRgn
Definition: OSDMenuInit.c:24
word ProgressBarOSDRgn
Definition: OSDMenuInit.c:23
TYPE_GrData _InputBox_Gd
dword ProgressBarLastValue
Definition: OSDMenuInit.c:25
TYPE_GrData _Progressbar_Gd
#define PROGRESSBARX
#define PROGRESSBARY
void OSDMenuProgressBarShow(const char *Title, const char *Text, dword Value, dword MaxValue, TYPE_GrData *DifferentProgressBar)
#define TRACEEXIT()
Definition: libFireBird.h:1244
void OSDMenuInfoBoxShow(const char *Title, const char *Text, dword Timeout)
#define TRACEENTER()
Definition: libFireBird.h:1243