summaryrefslogtreecommitdiff
path: root/dxr3osd.c
diff options
context:
space:
mode:
Diffstat (limited to 'dxr3osd.c')
-rw-r--r--dxr3osd.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/dxr3osd.c b/dxr3osd.c
index 72b7dc4..288f62a 100644
--- a/dxr3osd.c
+++ b/dxr3osd.c
@@ -62,8 +62,6 @@ public:
};
#endif
-#define MAXNUMWINDOWS 7 // OSD windows are counted 1...7
-
// ==================================
//! constructor
cDxr3Osd::cDxr3Osd(int Left, int Top, uint Level)
@@ -135,11 +133,15 @@ eOsdError cDxr3Osd::CanHandleAreas(const tArea *Areas, int NumAreas)
eOsdError cDxr3Osd::SetAreas(const tArea *Areas, int NumAreas)
{
- if (shown)
- {
+ if (shown) {
Spu->Clear();
shown = false;
}
+
+ // store area informations
+ memcpy(areas, Areas, sizeof(tArea) * NumAreas);
+ numAreas = NumAreas;
+
return cOsd::SetAreas(Areas, NumAreas);
}