Changeset 22581


Ignore:
Timestamp:
2010-08-06T15:51:13+12:00 (11 years ago)
Author:
davidb
Message:

page loads smaller chunks, fixed bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/music-stand/trunk/src/scribble-simple/scribble-simple.c

    r22562 r22581  
    1  
     1
    22/* GTK - The GIMP Toolkit
    33 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
     
    8787    if (vert_page_progress < change_height_percent)
    8888    {
     89
     90      int prev_height = (int)(pp_height * (vert_page_progress / 100.0));
    8991      vert_page_progress+=10;
    90  
    9192      int update_height = (int)(pp_height * (vert_page_progress / 100.0));
    9293 
     
    9899 
    99100      gtk_widget_queue_draw_area (widget,
    100                         0, 0,
    101                         pp_width, update_height);
     101                        0, prev_height,
     102                        pp_width, update_height - prev_height);
    102103      return TRUE;
    103104    }
     
    120121
    121122        gtk_widget_queue_draw_area (widget,
    122                           0, 0,
     123                          0, update_height,
    123124                          update_width, pp_height);
    124125
     
    492493                        char    *filename)
    493494{
     495  //reset points list
     496  points_list = NULL;
     497
    494498  FILE *file;
    495499  file = fopen(filename, "r+");
     
    504508  g_print("gonna scan us some file: %s\n", filename);
    505509
    506 
    507   //reset points list
    508   points_list = NULL;
    509510  while (fscanf(file, "%d %d\n", &x_val, &y_val) != EOF)
    510511    {
Note: See TracChangeset for help on using the changeset viewer.