diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 26d54428..3c2b9a73 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -793,6 +793,7 @@ Sascha Volkenandt being written to by a timer for fixing a crash in cConfig::Load() when compiling on the PPC for reporting '\n' in an esyslog() call in osd.c + for reporting missing '&' in the SetAreas() example in PLUGINS.html Malcolm Caldwell for modifying LOF handling to allow for C-band reception diff --git a/HISTORY b/HISTORY index 448c6649..6aa320b0 100644 --- a/HISTORY +++ b/HISTORY @@ -3920,3 +3920,5 @@ Video Disk Recorder Revision History - A menu is no longer automatically closed when a replay ends (reported by Marko Mäkelä). - Removed '\n' from several syslog() calls (reported by Sascha Volkenandt). +- Fixed missing '&' in the SetAreas() example in PLUGINS.html (reported by + Sascha Volkenandt). diff --git a/PLUGINS.html b/PLUGINS.html index 12317cc3..d1c787b3 100644 --- a/PLUGINS.html +++ b/PLUGINS.html @@ -1476,7 +1476,7 @@ yet, so you need to at least call the function

 tArea Area = { 0, 0, 100, 100, 4 };
-MyOsd->SetAreas(Area, 1);
+MyOsd->SetAreas(&Area, 1);
 

to define an actual OSD drawing area (see VDR/osd.h for the declarations @@ -1496,7 +1496,7 @@ sub-areas with different color depths and separate color palettes, as in

 tArea Area = { 0, 0, 99, 99, 4 };
 if (osd->CanHandleAreas(Area, 1) == oeOk)
-   osd->SetAreas(Area, 1);
+   osd->SetAreas(&Area, 1);
 else {
    tArea Areas[] = { { 0,  0, 99, 19, 2 },
                      { 0, 20, 99, 79, 2 },