1 /*
2
3 Copyright (C) 2015-2018 Night Dive Studios, LLC.
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 */
19 /*
20 * $Source: n:/project/lib/src/2d/RCS/fl8sub.c $
21 * $Revision: 1.2 $
22 * $Author: kaboom $
23 * $Date: 1993/10/08 01:15:35 $
24 *
25 * Sub bitmap routine for flat 8 bitmaps.
26 *
27 * This file is part of the 2d library.
28 *
29 * $Log: fl8sub.c $
30 * Revision 1.2 1993/10/08 01:15:35 kaboom
31 * Changed quotes in #include liness to angle brackets for Watcom problem.
32 *
33 * Revision 1.1 1993/04/29 18:46:54 kaboom
34 * Initial revision
35 *
36 */
37
38 #include "grs.h"
39
flat8_sub_bitmap(grs_bitmap * bm,short x,short y,short w,short h)40 grs_bitmap *flat8_sub_bitmap(grs_bitmap *bm, short x, short y, short w, short h) {
41 bm->bits += y * bm->row + x;
42 bm->w = w;
43 bm->h = h;
44 return bm;
45 }
46