aboutsummaryrefslogtreecommitdiffstats
path: root/src/tvtimeconf.c
diff options
context:
space:
mode:
authorvektor <devnull@localhost>2005-08-14 17:49:44 +0000
committervektor <devnull@localhost>2005-08-14 17:49:44 +0000
commit96ebbfa2687cef16e63be2c63a84bad073f5552a (patch)
treef312422a42e7aa279a25461c4f1785b1680d178c /src/tvtimeconf.c
parentecbd68a3e42c87b326f77eeb139d11673bf9f91a (diff)
* tvtime/src/tvtimeconf.c: Add a new config option for square pixel mode.
Default to square pixels. * tvtime/src/tvtimeconf.h: Accessor. * tvtime/src/tvtime.c: Pass to the backend. * tvtime/src/outputapi.h: Add a square pixel parameter to the init function. * tvtime/src/xcommon.c: Add a mode for forcing square pixels. * tvtime/src/xcommon.h: API. * tvtime/src/xvoutput.c: Use the xcommon implementation. * tvtime/docs/html/default.tvtime.xml: Document the new SquarePixels option. * tvtime/docs/man/en/tvtime.xml.5: Document it here too. * tvtime/NEWS: This is a newsworthy change. * tvtime/ChangeLog: Note it here too.
Diffstat (limited to 'src/tvtimeconf.c')
-rw-r--r--src/tvtimeconf.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tvtimeconf.c b/src/tvtimeconf.c
index 5666f0b..ba9265b 100644
--- a/src/tvtimeconf.c
+++ b/src/tvtimeconf.c
@@ -56,6 +56,7 @@ struct config_s
char *geometry;
int verbose;
int aspect;
+ int squarepixels;
int debug;
int fullscreen;
int alwaysontop;
@@ -281,6 +282,10 @@ static void parse_option( config_t *ct, xmlNodePtr node )
}
}
+ if( !xmlStrcasecmp( name, BAD_CAST "SquarePixels" ) ) {
+ ct->squarepixels = atoi( curval );
+ }
+
if( !xmlStrcasecmp( name, BAD_CAST "Widescreen" ) ) {
ct->aspect = atoi( curval );
}
@@ -707,6 +712,7 @@ config_t *config_new( void )
ct->geometry = strdup( "0x576" );
ct->verbose = 0;
ct->aspect = 0;
+ ct->squarepixels = 1;
ct->debug = 0;
ct->fullscreen = 0;
ct->alwaysontop = 0;
@@ -1649,3 +1655,8 @@ int config_get_show_taglines( config_t *ct )
return ct->show_taglines;
}
+int config_get_square_pixels( config_t *ct )
+{
+ return ct->squarepixels;
+}
+

Privacy Policy