Changeset f698054 in mainline


Ignore:
Timestamp:
2012-11-25T07:04:59Z (11 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c4ebe02
Parents:
c8e2ac5
Message:

Removed unnecessary code.

Location:
uspace/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/draw/source.c

    rc8e2ac5 rf698054  
    106106        long _y = (long) (y + source->transform.m[1][2]);
    107107
    108         pixelmap_t *pixmap = surface_pixmap_access(source->texture);
    109         if (_x < 0 || _x >= (long) pixmap->width || _y < 0 || _y >= (long) pixmap->height) {
    110                 return NULL;
    111         }
    112 
    113         return pixelmap_pixel_at(pixmap, (sysarg_t) _x, (sysarg_t) _y);
     108        return pixelmap_pixel_at(
     109            surface_pixmap_access(source->texture), (sysarg_t) _x, (sysarg_t) _y);
    114110}
    115111
  • uspace/lib/softrend/filter.c

    rc8e2ac5 rf698054  
    4444                _x %= pixmap->width;
    4545                _y %= pixmap->height;
    46         } else if (_x < 0 || _x >= (long) pixmap->width || _y < 0 || _y >= (long) pixmap->height) {
    47                 return 0;
    4846        }
    4947
Note: See TracChangeset for help on using the changeset viewer.