]> mj.ucw.cz Git - leo.git/commitdiff
Disable logo drawing hacks
authorMartin Mares <mj@ucw.cz>
Sun, 15 Jun 2014 20:35:27 +0000 (22:35 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 15 Jun 2014 20:35:27 +0000 (22:35 +0200)
Makefile
leo.c

index 22214549483ecdccfd6fe42307691bf60325df97..f2a7361ea73f1349aa371e7adb4026535675b06e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -42,10 +42,10 @@ install:
 endif
 .PHONY: install
 
-#output.svg: leo dump.osm poskole.css
-#      ./leo
-#
-#output.pdf: output.svg
-#      inkscape --export-pdf=output.pdf output.svg
+output.svg: $(o)/leo dump.osm poskole.css
+       $(o)/leo
+
+output.pdf: output.svg
+       inkscape --export-pdf=output.pdf output.svg
 
 include $(BUILDSYS)/Makebottom
diff --git a/leo.c b/leo.c
index c873770b05e34387a0f4da5f886ceda76447e77a..dea6cde89a684e6c87e83871add89e09ec6d261a 100644 (file)
--- a/leo.c
+++ b/leo.c
@@ -212,11 +212,14 @@ int main(int argc UNUSED, char **argv)
     }
 
   // FIXME: Replace by generic logo drawing facility
+#if 0
   struct svg_icon *logo = svg_icon_load(svg, "../logo/kocka-s-okrajem.svg");
+#endif
 
   sym_draw_all(svg);
 
   // Draw logo
+#if 0
   double logo_width = 36.12;
   double logo_height = 36.12 / logo->width * logo->height;
   struct svg_icon_request sir = {
@@ -227,6 +230,7 @@ int main(int argc UNUSED, char **argv)
     .height = logo_height,
   };
   svg_icon_put(svg, &sir);
+#endif
 
   draw_scale(svg);