51 |
void PG_MiniMap::DrawMap() { |
void PG_MiniMap::DrawMap() { |
52 |
|
|
53 |
// create the rawmap surface to the size of the map |
// create the rawmap surface to the size of the map |
54 |
SDL_Surface* srf = SDL_CreateRGBSurface(SDL_SWSURFACE, themap->GetCols(), themap->GetRows(), 16, 0, 0, 0, 0); |
SDL_Surface* srf = SDL_CreateRGBSurface(SDL_SWSURFACE, themap->GetCols(), themap->GetRows(), rm->GetColorDepth(), 0, 0, 0, 0); |
55 |
|
|
56 |
// FIXME: draw to rawmap, THEN scale to surface object |
// FIXME: draw to rawmap, THEN scale to surface object |
57 |
//rm->SLock(rawmap); |
//rm->SLock(rawmap); |
111 |
void PG_MiniMap::DrawMapWithBounds(int x1, int y1, int x2, int y2) { |
void PG_MiniMap::DrawMapWithBounds(int x1, int y1, int x2, int y2) { |
112 |
|
|
113 |
// create the rawmap surface to the size of the map |
// create the rawmap surface to the size of the map |
114 |
SDL_Surface* srf = SDL_CreateRGBSurface(SDL_SWSURFACE, themap->GetCols(), themap->GetRows(), 32, 0, 0, 0, 0); |
SDL_Surface* srf = SDL_CreateRGBSurface(SDL_SWSURFACE, themap->GetCols(), themap->GetRows(), rm->GetColorDepth(), 0, 0, 0, 0); |
115 |
|
|
116 |
int z; // + for bounds hilite |
int z; // + for bounds hilite |
117 |
|
|