|
@@ -253,7 +253,9 @@ int app( int argc, char** argv ) {
|
253
|
253
|
bool decorations = !options.nodecorations_flag;
|
254
|
254
|
bool themeon = (bool)options.theme_given;
|
255
|
255
|
std::string theme = options.theme_arg;
|
|
256
|
+#ifdef OPENGL_ENABLED
|
256
|
257
|
bool shadergiven = (bool)options.shader_given;
|
|
258
|
+#endif
|
257
|
259
|
std::string shader = options.shader_arg;
|
258
|
260
|
struct timespec start, time;
|
259
|
261
|
int xoffset = 0;
|
|
@@ -274,12 +276,14 @@ int app( int argc, char** argv ) {
|
274
|
276
|
}
|
275
|
277
|
std::string format = options.format_arg;
|
276
|
278
|
bool magenabled = options.magnify_flag;
|
|
279
|
+#ifdef OPENGL_ENABLED
|
277
|
280
|
float magstrength = options.magstrength_arg;
|
278
|
281
|
if ( options.magpixels_arg < 0 ) {
|
279
|
282
|
fprintf( stderr, "Error: --magpixels < 0, it's an unsigned integer you twat. Stop trying to underflow me!\n" );
|
280
|
283
|
return EXIT_FAILURE;
|
281
|
284
|
}
|
282
|
285
|
unsigned int magpixels = (unsigned int)options.magpixels_arg;
|
|
286
|
+#endif
|
283
|
287
|
cmdline_parser_free( &options );
|
284
|
288
|
#ifndef OPENGL_ENABLED
|
285
|
289
|
if ( opengl || themeon || magenabled ) {
|