| 213 | } |
| 214 | |
| 215 | void grSurface::load(int handle) { |
| 216 | /* just load the bitmap from the handle info */ |
| 217 | ASSERT(m_SurfInit); |
| 218 | |
| 219 | grSurface::load((char *)bm_data(handle, 0), bm_w(handle, 0), bm_h(handle, 0), bm_bpp(handle), bm_format(handle)); |
| 220 | } |
| 221 | |
| 222 | void grSurface::load(char *data, int w, int h, int bpp, int format) { |
| 223 | // copy defined bitmap given as arguments to this surface, with correct bpp translation. |