Ignore:
Timestamp:
Mar 16, 2008, 12:52:51 PM (11 years ago)
Author:
Sam Hocevar
Message:
  • Fix spelling errors all over the place.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/image.cpp

    r56 r112  
    2828{
    2929    "No error",
    30     "Error occured while reading",
     30    "Error occurred while reading",
    3131    "Incorrect file type",
    3232    "File is corrupted",
     
    3434    "Memory allocation trouble",
    3535    "Operation/file type not supported",
    36     "Error occured while writing, (disk full?)"
     36    "Error occurred while writing, (disk full?)"
    3737};
    3838                       
     
    194194  wrd=uint16_to_intel(*up);
    195195  if (wrd!=0x01)
    196   { printf("Compiled under wrong ENDING-nes, edit system.h and try again\n");
     196  { printf("compiled with wrong endianness, edit system.h and try again\n");
    197197    printf("1 (intel) = %d\n",(int)wrd);
    198198    exit(1);
     
    722722void image::set_clip(int16_t x1, int16_t y1, int16_t x2, int16_t y2)
    723723{
    724   // If the image does not already have an Image descriptor, allocate one.
    725 
    726   if (!special)
    727   {
    728     // create a new image descriptor withj no dirty rectangle keeping
    729     special=new image_descriptor(width(),height(),0);
    730   }
    731   special->set_clip(x1,y1,x2,y2);  // set the image descriptor what the clip
    732                        // should be it will adjust to fit wiothin the image.
     724    // If the image does not already have an Image descriptor, allocate one
     725    // with no dirty rectangle keeping.
     726    if(!special)
     727        special = new image_descriptor(width(), height(), 0);
     728
     729    // set the image descriptor what the clip
     730    // should be it will adjust to fit within the image.
     731    special->set_clip(x1, y1, x2, y2);
    733732}
    734733
     
    756755  set_clip(x1,y1,x2,y2);
    757756}
    758 // this function reduces the number of dirty rectanges
    759 // to 1 by find the minmum area that can contain all the rectangles and
    760 // making this the new dirty area
     757
     758//
     759// reduce the number of dirty rectanges to 1 by finding the minmum area that
     760// can contain all the rectangles and making this the new dirty area
     761//
    761762void image_descriptor::reduce_dirties()
    762763{
     
    11441145}
    11451146
    1146 void image::wiget_bar(int16_t x1, int16_t y1, int16_t x2, int16_t y2,
     1147void image::widget_bar(int16_t x1, int16_t y1, int16_t x2, int16_t y2,
    11471148        uint8_t light, uint8_t med, uint8_t dark)
    11481149{
Note: See TracChangeset for help on using the changeset viewer.