Ignore:
Timestamp:
03/02/03 17:08:13 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/videodev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/videodev/PngReader.cc

    r1803 r1804  
    9494    // Write bitmap data
    9595    //
    96     static int first = 0;
    9796    for (unsigned int y=0; y<576; y++)
    9897        for (unsigned int x=0; x<768; x++)
  • trunk/MagicSoft/Cosy/videodev/Writer.cc

    r1111 r1804  
    2121    FILE *fd = fopen(fname, "w");
    2222    if (!fd)
     23    {
     24        cout << "Warning: Cannot open file for writing." << endl;
    2325        return;
     26    }
    2427
    2528    //
     
    7881    // Write Time Chunks
    7982    //
     83    /*
    8084    if (date)
    8185    {
     
    8791        sprintf(text,"*** %s %s %.1f %i ***", tzname[0], tzname[1], 1.0/3600*timezone, daylight);
    8892        png_write_chunk(fPng, (png_byte*)"ZONE", (png_byte*)text, strlen(text));
    89     }
     93        }
     94        */
    9095
    9196    //
     
    117122    ofstream fout(fname);
    118123    if (!fout)
     124    {
     125        cout << "Warning: Cannot open file for writing." << endl;
    119126        return;
     127    }
    120128
    121129    //
Note: See TracChangeset for help on using the changeset viewer.