diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp index 6b4a953ac..4b5a43887 100644 --- a/src/game/GameView.cpp +++ b/src/game/GameView.cpp @@ -441,7 +441,7 @@ void GameView::NotifyToolListChanged(GameModel * sender) currentX -= 31; tempButton->SetActionCallback(new ToolAction(this, toolList[i])); - VideoBuffer * tempTexture = toolList[i]->GetTexture(30, 18); + VideoBuffer * tempTexture = toolList[i]->GetTexture(26, 14); tempButton->Appearance.SetTexture(tempTexture); if(tempTexture) delete tempTexture; diff --git a/src/game/ToolButton.cpp b/src/game/ToolButton.cpp index 21e19be28..3021b4017 100644 --- a/src/game/ToolButton.cpp +++ b/src/game/ToolButton.cpp @@ -42,7 +42,7 @@ void ToolButton::Draw(const ui::Point& screenPos) if(Appearance.GetTexture()) { - g->draw_image(Appearance.GetTexture(), screenPos.X, screenPos.Y, 255); + g->draw_image(Appearance.GetTexture(), screenPos.X+2, screenPos.Y+2, 255); } else { diff --git a/src/graphics/Renderer.cpp b/src/graphics/Renderer.cpp index d91d30f86..22cfacf14 100644 --- a/src/graphics/Renderer.cpp +++ b/src/graphics/Renderer.cpp @@ -480,6 +480,46 @@ VideoBuffer * Renderer::WallIcon(int wallID, int width, int height) newTexture->SetPixel(i, j, PIXR(pc), PIXG(pc), PIXB(pc), 255); } } + else if (wt == WL_ERASE) + { + for (j=0; j>1)); iSetPixel(i, j, PIXR(pc), PIXG(pc), PIXB(pc), 255); + } + } + for (j=0; jSetPixel(i, j, PIXR(pc), PIXG(pc), PIXB(pc), 255); + } + } + for (j=4; jSetPixel(j+6, j, 0xFF, 0, 0, 255); + newTexture->SetPixel(j+7, j, 0xFF, 0, 0, 255); + newTexture->SetPixel(-j+21, j, 0xFF, 0, 0, 255); + newTexture->SetPixel(-j+22, j, 0xFF, 0, 0, 255); + } + } + else if(wt == WL_STREAM) + { + for (j=0; jSetPixel(i, j, PIXR(pc), PIXG(pc), PIXB(pc), 255); + } + } + newTexture->SetCharacter(4, 3, 0x8D, 255, 255, 255, 255); + for (i=width/3; iSetPixel(i, 8+(int)(3.9f*cos(i*0.3f)), 255, 255, 255, 255); + } + } return newTexture; }