aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-10-20 04:16:45 +0000
committerDavid Robillard <d@drobilla.net>2011-10-20 04:16:45 +0000
commitfc4d272d955735ffc49c867cdf28a8e7b621488e (patch)
tree7fe8a7db42e8810a429ddf05c1e3cc8a188c4710 /src
parentc9321a790de52835588989ac6c032a44c5eed668 (diff)
downloadjalv-fc4d272d955735ffc49c867cdf28a8e7b621488e.tar.gz
jalv-fc4d272d955735ffc49c867cdf28a8e7b621488e.tar.bz2
jalv-fc4d272d955735ffc49c867cdf28a8e7b621488e.zip
Fix compilation without UI resize extension.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@3553 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/jalv.c2
-rw-r--r--src/jalv_internal.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/jalv.c b/src/jalv.c
index 5f4e80a..7621e07 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -454,9 +454,9 @@ main(int argc, char** argv)
#ifdef HAVE_LV2_UI_RESIZE
ui_resize.data = &host;
+#endif
host.ui_width = -1;
host.ui_height = -1;
-#endif
sem_init(&exit_sem, 0, 0);
host.done = &exit_sem;
diff --git a/src/jalv_internal.h b/src/jalv_internal.h
index 9b2946c..906ca7b 100644
--- a/src/jalv_internal.h
+++ b/src/jalv_internal.h
@@ -75,10 +75,8 @@ typedef struct {
JalvOptions opts; /**< Command-line options */
const char* prog_name; /**< Program name (argv[0]) */
LilvWorld* world; /**< Lilv World */
-#ifdef HAVE_LV2_UI_RESIZE
int ui_width; /**< Requested UI width */
int ui_height; /**< Requested UI height */
-#endif
SerdReader* reader; /**< RDF reader (for persistence) */
SerdWriter* writer; /**< RDF writer (for persistence) */
struct Property* props; /**< Restored state properties */