Changeset 67
- Timestamp:
- 12/11/11 18:10:26 (5 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 modified
-
Makefile.am (modified) (1 diff)
-
configure.ac (modified) (1 diff)
-
man/Makefile.am (added)
-
src/pdfcube.cc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile.am
r26 r67 5 5 6 6 #Build in these directories: 7 SUBDIRS = src m47 SUBDIRS = src 8 8 9 9 #Distribute these directories: 10 DIST_SUBDIRS = src m4 10 DIST_SUBDIRS = src m4 man 11 11 12 12 EXTRA_DIST = autogen.sh -
trunk/configure.ac
r64 r67 60 60 AC_OUTPUT(Makefile \ 61 61 src/Makefile \ 62 m4/Makefile 62 m4/Makefile \ 63 man/Makefile 63 64 ) -
trunk/src/pdfcube.cc
r65 r67 73 73 }; 74 74 75 enum imagescale_t { IMAGE_FILL, IMAGE_SCALE, IMAGE_ZOOM }; 76 77 static GtkWidget* window; 78 79 static imagescale_t imagescale = IMAGE_FILL; 75 80 static gboolean fullscreen; 76 81 static gboolean animating = FALSE; 77 animation active_animation = ANIM_NONE;78 animation previous_animation = ANIM_NONE;79 animation last_animation = ANIM_NONE;82 static animation active_animation = ANIM_NONE; 83 static animation previous_animation = ANIM_NONE; 84 static animation last_animation = ANIM_NONE; 80 85 81 86 // Cube Transitions on the command line … … 135 140 page = poppler_document_get_page(d, 1); 136 141 poppler_page_get_size(page, &w, &h); 137 tex_width = 1024; 138 tex_height = 768; 142 143 /* 144 GdkScreen* screen = gdk_screen_get_default(); 145 gint monitor_num = gdk_screen_get_monitor_at_window(gdk_screen_get_default(), 146 window->window); 147 GdkRectangle dest; 148 gdk_screen_get_monitor_geometry(screen, 149 monitor_num, 150 &dest); 151 152 std::cerr << dest.width << " " << dest.height << std::endl; 153 */ 154 tex_width = 320; 155 tex_height = 240; 139 156 pixmap = 140 157 cairo_image_surface_create(CAIRO_FORMAT_ARGB32, … … 1860 1877 { 1861 1878 1862 GtkWidget *1863 window;1864 1879 GdkGLConfig * 1865 1880 glconfig; … … 1995 2010 exit(1); 1996 2011 } 2012 2013 /* Create and show the application window. */ 2014 window = create_window(glconfig); 1997 2015 1998 2016 pc = new pdfcube(document); … … 2029 2047 } 2030 2048 } 2031 2032 /* Create and show the application window. */ 2033 window = create_window(glconfig); 2034 2049 2035 2050 if(vm.count("no-fullscreen")) 2036 2051 fullscreen = FALSE;

