/[projectaxis]/projectaxis/projectAxis/src/visual/pgminimap.cpp
ViewVC logotype

Diff of /projectaxis/projectAxis/src/visual/pgminimap.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by vovansim, Sat Sep 20 03:34:06 2003 UTC revision 1.6 by leiavoia, Sun Sep 28 06:06:56 2003 UTC
# Line 51  PG_MiniMap::~PG_MiniMap() {    //std::cout Line 51  PG_MiniMap::~PG_MiniMap() {    //std::cout
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);
# Line 111  void PG_MiniMap::DrawMap() { Line 111  void PG_MiniMap::DrawMap() {
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    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26