Actions
Feature #17
closedAntialiased fonts
Start date:
12/16/2008
Due date:
12/21/2008
% Done:
100%
Estimated time:
Description
Could somebody implement support for antialiased fonts for this plugin.
I attach here my quick and dirty patch that probably won't work with all configurations.
--- ttxtsubs-0.0.6.orig/ttxtsubsdisplay.c 2008-12-14 22:34:49.000000000 +0 200 +++ ttxtsubs-0.0.6/ttxtsubsdisplay.c 2008-12-16 20:40:27.000000000 +0200 @@ -456,8 +456,13 @@ void cTtxtSubsDisplay::ShowOSD(void) left = SCREENRIGHT - SIDEMARGIN - w; break; } - tArea area = {left, y, left+w-1, y+ROWH-1, 2}; - areas[numAreas++] = area; + if (Setup.AntiAlias) { + tArea area = {left, y, left+w-1, y+ROWH-1, 8}; + areas[numAreas++] = area; + } else { + tArea area = {left, y, left+w-1, y+ROWH-1, 2}; + areas[numAreas++] = area; + } y += (ROWINCR + globals.lineSpacing()); } if (mOsd->CanHandleAreas(areas, numAreas) != oeOk) {
Files
Updated by etobi about 16 years ago
- Due date set to 12/21/2008
- Assignee set to etobi
Updated by etobi about 16 years ago
- File ttxtsubs-8bpp.patch ttxtsubs-8bpp.patch added
I kinda improved this patch, so that it falls back to a lower color depth if needed.
Can anyone please check this?
Updated by Anonymous about 16 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset 569d7d5d2a9abb984a7a395b6f82eec4bdfe1699.
Actions