Changeset 68 for trunk/src

Show
Ignore:
Timestamp:
12/11/11 18:28:45 (5 months ago)
Author:
mirko
Message:

reverting unwanted changes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/pdfcube.cc

    r67 r68  
    7373}; 
    7474 
    75 enum imagescale_t { IMAGE_FILL, IMAGE_SCALE, IMAGE_ZOOM }; 
    76  
    77 static GtkWidget* window; 
    78  
    79 static imagescale_t imagescale = IMAGE_FILL; 
    8075static gboolean fullscreen; 
    8176static gboolean animating = FALSE; 
    82 static animation active_animation = ANIM_NONE; 
    83 static animation previous_animation = ANIM_NONE; 
    84 static animation last_animation = ANIM_NONE; 
     77animation active_animation = ANIM_NONE; 
     78animation previous_animation = ANIM_NONE; 
     79animation last_animation = ANIM_NONE; 
    8580 
    8681// Cube Transitions on the command line  
     
    140135    page = poppler_document_get_page(d, 1); 
    141136    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; 
    156139    pixmap = 
    157140      cairo_image_surface_create(CAIRO_FORMAT_ARGB32,  
     
    18771860{ 
    18781861 
     1862  GtkWidget * 
     1863    window; 
    18791864  GdkGLConfig * 
    18801865    glconfig; 
     
    20101995    exit(1); 
    20111996  } 
    2012  
    2013   /* Create and show the application window. */ 
    2014   window = create_window(glconfig); 
    20151997 
    20161998  pc = new pdfcube(document); 
     
    20472029        } 
    20482030    } 
    2049      
     2031   
     2032  /* Create and show the application window. */ 
     2033  window = create_window(glconfig); 
     2034   
    20502035  if(vm.count("no-fullscreen")) 
    20512036    fullscreen = FALSE;