OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

265 lines
6.7 KiB

  1. diff -ruN vcd-0.0.6c/vcd.c vcd-0.0.6c-work/vcd.c
  2. --- vcd-0.0.6c/vcd.c 2003-11-24 19:48:28.000000000 +0100
  3. +++ vcd-0.0.6c-work/vcd.c 2004-06-18 12:20:09.178647561 +0200
  4. @@ -175,7 +175,11 @@
  5. }
  6. }
  7. else
  8. - Interface->Info(tr("No VideoCD detected"));
  9. +#if VDRVERSNUM >= 10307
  10. + Skins.Message(mtInfo, tr("No VideoCD detected"));
  11. +#else
  12. + Interface->Info(tr("No VideoCD detected"));
  13. +#endif
  14. }
  15. else {
  16. if (VcdSetupData.PlaySequenceReplay && psd_size) {
  17. @@ -186,7 +190,11 @@
  18. }
  19. }
  20. else
  21. - Interface->Info(tr("No disc inserted"));
  22. +#if VDRVERSNUM >= 10307
  23. + Skins.Message(mtInfo, tr("No disc inserted"));
  24. +#else
  25. + Interface->Info(tr("No disc inserted"));
  26. +#endif
  27. return NULL;
  28. }
  29. diff -ruN vcd-0.0.6c/vcd_menu_control.c vcd-0.0.6c-work/vcd_menu_control.c
  30. --- vcd-0.0.6c/vcd_menu_control.c 2003-11-01 14:19:38.000000000 +0100
  31. +++ vcd-0.0.6c-work/vcd_menu_control.c 2004-06-18 12:20:09.181647311 +0200
  32. @@ -33,6 +33,9 @@
  33. cMenuSpiControl::cMenuSpiControl(void)
  34. : cVcdViewerControl(spi, vcd)
  35. {
  36. +#if VDRVERSNUM >= 10307
  37. + display = NULL;
  38. +#endif
  39. visible = modeOnly = false;
  40. }
  41. @@ -61,7 +64,11 @@
  42. void cMenuSpiControl::Hide(void)
  43. {
  44. if (visible) {
  45. +#if VDRVERSNUM >= 10307
  46. + delete display;
  47. +#else
  48. Interface->Close();
  49. +#endif
  50. needsFastResponse = visible = false;
  51. modeOnly = false;
  52. }
  53. @@ -106,7 +113,7 @@
  54. class cVcdProgressBar : public cBitmap {
  55. protected:
  56. int total;
  57. - int Pos(int p) { return p * width / total; }
  58. + int Pos(int p) { return p * cBitmap::Width() / total; }
  59. public:
  60. cVcdProgressBar(int Width, int Height, int Current, int Total);
  61. };
  62. @@ -114,12 +121,14 @@
  63. cVcdProgressBar::cVcdProgressBar(int Width, int Height, int Current, int Total)
  64. :cBitmap(Width, Height, 2)
  65. {
  66. +#if VDRVERSNUM < 10307
  67. total = Total;
  68. if (total > 0) {
  69. int p = Pos(Current);
  70. Fill(0, 0, p, Height - 1, clrGreen);
  71. Fill(p + 1, 0, Width - 1, Height - 1, clrWhite);
  72. }
  73. +#endif
  74. }
  75. @@ -133,6 +142,9 @@
  76. cMenuVcdControl::cMenuVcdControl(void)
  77. : cVcdPlayerControl(track, vcd)
  78. {
  79. +#if VDRVERSNUM >= 10307
  80. + display = NULL;
  81. +#endif
  82. visible = modeOnly = shown = displayFrames = false;
  83. timeoutShow = 0;
  84. timeSearchActive = false;
  85. @@ -183,7 +195,11 @@
  86. void cMenuVcdControl::Hide(void)
  87. {
  88. if (visible) {
  89. +#if VDRVERSNUM >= 10307
  90. + delete display;
  91. +#else
  92. Interface->Close();
  93. +#endif
  94. needsFastResponse = visible = false;
  95. modeOnly = false;
  96. }
  97. @@ -191,6 +207,7 @@
  98. void cMenuVcdControl::DisplayAtBottom(const char *s)
  99. {
  100. +#if VDRVERSNUM < 10307
  101. if (s) {
  102. int w = cOsd::WidthInCells(s);
  103. int d = max(Width() - w, 0) / 2;
  104. @@ -201,6 +218,7 @@
  105. }
  106. else
  107. Interface->Fill(12, 2, Width() - 22, 1, clrBackground);
  108. +#endif
  109. }
  110. void cMenuVcdControl::ShowMode(void)
  111. @@ -219,7 +237,11 @@
  112. Interface->Open(9, -1);
  113. Interface->Clear();
  114. XXX*/
  115. +#if VDRVERSNUM >= 10307
  116. + display = Skins.Current()->DisplayReplay(false);
  117. +#else
  118. Interface->Open(0, -1); //XXX remove when displaying replay mode differently
  119. +#endif
  120. visible = modeOnly = true;
  121. }
  122. @@ -235,9 +257,13 @@
  123. if (p)
  124. *p = Speed > 0 ? '1' + Speed - 1 : ' ';
  125. +#if VDRVERSNUM >= 10307
  126. + display->SetMode(Play, Forward, Speed);
  127. +#else
  128. eDvbFont OldFont = Interface->SetFont(fontFix);
  129. DisplayAtBottom(buf);
  130. Interface->SetFont(OldFont);
  131. +#endif
  132. }
  133. }
  134. }
  135. @@ -248,19 +274,35 @@
  136. if (GetIndex(Current, Total) && Total > 0) {
  137. if (!visible) {
  138. +#if VDRVERSNUM >= 10307
  139. + display = Skins.Current()->DisplayReplay(false);
  140. +#else
  141. Interface->Open(Setup.OSDwidth, -3);
  142. +#endif
  143. needsFastResponse = visible = true;
  144. }
  145. if (Initial) {
  146. +#if VDRVERSNUM < 10307
  147. Interface->Clear();
  148. +#endif
  149. lastCurrent = lastTotal = -1;
  150. }
  151. if (title)
  152. +#if VDRVERSNUM >= 10307
  153. + display->SetTitle(title);
  154. +#else
  155. Interface->Write(0, 0, title);
  156. +#endif
  157. if (Total != lastTotal) {
  158. +#if VDRVERSNUM >= 10307
  159. + display->SetTotal(IndexToHMSF(Total));
  160. + if (!Initial)
  161. + Skins.Flush();
  162. +#else
  163. Interface->Write(-7, 2, IndexToHMSF(Total));
  164. if (!Initial)
  165. Interface->Flush();
  166. +#endif
  167. }
  168. if (Current != lastCurrent || Total != lastTotal) {
  169. #ifdef DEBUG_OSD
  170. @@ -268,13 +310,24 @@
  171. Interface->Fill(0, 1, p, 1, clrGreen);
  172. Interface->Fill(p, 1, Width() - p, 1, clrWhite);
  173. #else
  174. +#if VDRVERSNUM >= 10307
  175. + display->SetProgress(Current, Total);
  176. + if (!Initial)
  177. + Skins.Flush();
  178. +#else
  179. cVcdProgressBar ProgressBar(Width() * cOsd::CellWidth(), cOsd::LineHeight(), Current, Total);
  180. Interface->SetBitmap(0, cOsd::LineHeight(), ProgressBar);
  181. if (!Initial)
  182. Interface->Flush();
  183. #endif
  184. +#endif
  185. +#if VDRVERSNUM >= 10307
  186. + display->SetCurrent(IndexToHMSF(Current, displayFrames));
  187. + Skins.Flush();
  188. +#else
  189. Interface->Write(0, 2, IndexToHMSF(Current, displayFrames));
  190. Interface->Flush();
  191. +#endif
  192. lastCurrent = Current;
  193. }
  194. lastTotal = Total;
  195. @@ -298,7 +351,11 @@
  196. char cm10 = timeSearchPos > 1 ? m10 : '-';
  197. char cm1 = timeSearchPos > 0 ? m1 : '-';
  198. sprintf(buf + len, "%c%c:%c%c", ch10, ch1, cm10, cm1);
  199. +#if VDRVERSNUM >= 10307
  200. + display->SetJump(buf);
  201. +#else
  202. DisplayAtBottom(buf);
  203. +#endif
  204. }
  205. void cMenuVcdControl::TimeSearchProcess(eKeys Key)
  206. @@ -451,8 +508,10 @@
  207. }
  208. if (DoShowMode)
  209. ShowMode();
  210. +#if VDRVERSNUM < 10307
  211. if (DisplayedFrames && !displayFrames)
  212. Interface->Fill(0, 2, 11, 1, clrBackground);
  213. +#endif
  214. return osContinue;
  215. }
  216. diff -ruN vcd-0.0.6c/vcd_menu_control.h vcd-0.0.6c-work/vcd_menu_control.h
  217. --- vcd-0.0.6c/vcd_menu_control.h 2003-10-21 22:01:57.000000000 +0200
  218. +++ vcd-0.0.6c-work/vcd_menu_control.h 2004-06-18 12:20:09.183647144 +0200
  219. @@ -18,6 +18,9 @@
  220. class cMenuSpiControl : public cVcdViewerControl {
  221. private:
  222. +#if VDRVERSNUM >= 10307
  223. + cSkinDisplayReplay *display;
  224. +#endif
  225. bool visible, modeOnly;
  226. static int spi;
  227. static cVcd *vcd;
  228. @@ -34,6 +37,9 @@
  229. class cMenuVcdControl : public cVcdPlayerControl {
  230. private:
  231. +#if VDRVERSNUM >= 10307
  232. + cSkinDisplayReplay *display;
  233. +#endif
  234. bool visible, modeOnly, shown, displayFrames;
  235. time_t timeoutShow;
  236. bool timeSearchActive, timeSearchHide;
  237. diff -ruN vcd-0.0.6c/vcd_psd.h vcd-0.0.6c-work/vcd_psd.h
  238. --- vcd-0.0.6c/vcd_psd.h 2003-10-22 13:21:17.000000000 +0200
  239. +++ vcd-0.0.6c-work/vcd_psd.h 2004-06-18 12:20:09.185646977 +0200
  240. @@ -14,7 +14,12 @@
  241. #define __VCD_PSD_H
  242. +#include <vdr/config.h>
  243. +#if VDRVERSNUM >= 10307
  244. +#include <vdr/osdbase.h>
  245. +#else
  246. #include <vdr/osd.h>
  247. +#endif
  248. #include "vcd_func.h"