|
|
return; | return; |
tArea *Areas = Page->GetAreas(); | tArea *Areas = Page->GetAreas(); |
int NumAreas = Page->regions.Count(); | int NumAreas = Page->regions.Count(); |
int Bpp = 8; |
//int Bpp = 8; |
bool Reduced = false; | bool Reduced = false; |
|
for (int i = 0; i < NumAreas; i++) { |
|
if (Areas[i].bpp > 2) { |
|
Areas[i].bpp = 2; |
|
Reduced = true; |
|
} |
|
} |
|
/* |
while (osd->CanHandleAreas(Areas, NumAreas) != oeOk) { | while (osd->CanHandleAreas(Areas, NumAreas) != oeOk) { |
int HalfBpp = Bpp / 2; | int HalfBpp = Bpp / 2; |
if (HalfBpp >= 2) { | if (HalfBpp >= 2) { |
|
|
else | else |
return; // unable to draw bitmaps | return; // unable to draw bitmaps |
} | } |
|
*/ |
if (Reduced) { | if (Reduced) { |
for (int i = 0; i < NumAreas; i++) { | for (int i = 0; i < NumAreas; i++) { |
cSubtitleRegion *sr = Page->regions.Get(i); | cSubtitleRegion *sr = Page->regions.Get(i); |