Changeset 22 in projects for visualisator/lochstreifen.c


Ignore:
Timestamp:
Oct 8, 2008, 1:12:22 AM (11 years ago)
Author:
sven
Message:

Great directory restructuring: The GtkPaperTape files are now splitted
up in their own directory and all using shorter names and labels:
PaperTape::Color in favour of GtkPaperTapeColor. Furthermore all files
are in revision progress, started a bit with zoom.h/zoom.cc and
greatly with file.h. Work still in progress -- this commit won't
compile at all!

Fixed a small bug in lochstreifen.c that caused crashing at repainting
because the callback function pointer was not initialized to NULL.

-- Sven @ workstation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • visualisator/lochstreifen.c

    r19 r22  
    6868        cairo_matrix_init(&l->matrix, 1, 0, 0, 1, 0, 0); // default = 1:1 original
    6969        l->matrix_inverse             = l->matrix;
     70        l->row_callback               = NULL;
     71        l->row_callback_user_data     = NULL;
    7072
    7173        return l;
     
    107109        l->matrix                     = template->matrix;
    108110        l->matrix_inverse             = template->matrix_inverse;
     111        l->row_callback               = template->row_callback;
     112        l->row_callback_user_data     = template->row_callback_user_data;
    109113
    110114        return l;
     
    115119 * *except* from the data. You have to manage them on your own.
    116120 * In the end, it will free the LOCHSTREIFEN itself.
     121 * This won't touch your row_callback_user_data.
    117122 * @return Nothing, because there's nothing left. Except your data, okay.
    118123 **/
     
    946951                // call row callback
    947952                if(l->row_callback != NULL) {
     953                        printf("CALLING ROW CALLBACK!\n");
    948954                        (*l->row_callback) (&row, cr, l->row_callback_user_data);
    949955                        // at least now that's all the magic ;)
     
    992998                        }
    993999                       
     1000                        printf("testing byte\n");
    9941001                        if( ((l->data[row] >> track) & 0x01) != 0x01) {
    9951002                                // bit is logical ZERO (0)
Note: See TracChangeset for help on using the changeset viewer.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License