X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Ffliptext.c;h=b47bbb83edfd0c204c11c162145142f2a89db7df;hb=5f9c47ca98dd43d8f59b7c27d3fde6edfde4fe21;hp=25dd84c7624f1f7627fedecb0fa48d0ff44df346;hpb=c494fd2e6b3b25582375d62e40f4f5cc984ca424;p=xscreensaver diff --git a/hacks/glx/fliptext.c b/hacks/glx/fliptext.c index 25dd84c7..b47bbb83 100644 --- a/hacks/glx/fliptext.c +++ b/hacks/glx/fliptext.c @@ -1,5 +1,5 @@ /* - * fliptext, Copyright (c) 2005-2007 Jamie Zawinski + * fliptext, Copyright (c) 2005-2011 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -72,7 +72,7 @@ #define DEF_LINES "8" #define DEF_FONT_SIZE "20" #define DEF_COLUMNS "80" -#define DEF_ALIGN "random" +#define DEF_ALIGNMENT "random" #define DEF_SPEED "1.0" #define TAB_WIDTH 8 @@ -164,7 +164,7 @@ static argtype vars[] = { {&max_lines, "lines", "Integer", DEF_LINES, t_Int}, {&font_size, "fontSize", "Float", DEF_FONT_SIZE, t_Float}, {&target_columns, "columns", "Integer", DEF_COLUMNS, t_Int}, - {&alignment_str, "alignment", "Alignment", DEF_ALIGN, t_String}, + {&alignment_str, "alignment", "Alignment", DEF_ALIGNMENT, t_String}, {&speed, "speed", "Speed", DEF_SPEED, t_Float}, }; @@ -914,6 +914,7 @@ init_fliptext (ModeInfo *mi) if ((sc->glx_context = init_GL(mi)) != NULL) { reshape_fliptext (mi, MI_WIDTH(mi), MI_HEIGHT(mi)); + clear_gl_error(); /* WTF? sometimes "invalid op" from glViewport! */ } program = get_string_resource (mi->dpy, "program", "Program");