- Timestamp:
- 12/11/11 18:28:45 (5 months ago)
- Files:
-
- 1 modified
-
trunk/src/pdfcube.cc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/pdfcube.cc
r67 r68 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;80 75 static gboolean fullscreen; 81 76 static gboolean animating = FALSE; 82 staticanimation active_animation = ANIM_NONE;83 staticanimation previous_animation = ANIM_NONE;84 staticanimation last_animation = ANIM_NONE;77 animation active_animation = ANIM_NONE; 78 animation previous_animation = ANIM_NONE; 79 animation last_animation = ANIM_NONE; 85 80 86 81 // Cube Transitions on the command line … … 140 135 page = poppler_document_get_page(d, 1); 141 136 poppler_page_get_size(page, &w, &h); 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; 137 tex_width = 1024; 138 tex_height = 768; 156 139 pixmap = 157 140 cairo_image_surface_create(CAIRO_FORMAT_ARGB32, … … 1877 1860 { 1878 1861 1862 GtkWidget * 1863 window; 1879 1864 GdkGLConfig * 1880 1865 glconfig; … … 2010 1995 exit(1); 2011 1996 } 2012 2013 /* Create and show the application window. */2014 window = create_window(glconfig);2015 1997 2016 1998 pc = new pdfcube(document); … … 2047 2029 } 2048 2030 } 2049 2031 2032 /* Create and show the application window. */ 2033 window = create_window(glconfig); 2034 2050 2035 if(vm.count("no-fullscreen")) 2051 2036 fullscreen = FALSE;

