GRAPHICS: Remove unused variables

This commit is contained in:
Borja Lorente 2016-07-31 18:00:36 +02:00
parent e809320f58
commit 03f2d9b01e
2 changed files with 0 additions and 5 deletions

View file

@ -394,12 +394,10 @@ bool MacWindow::isInResizeButton(int x, int y) {
} }
WindowClick MacWindow::isInScroll(int x, int y) { WindowClick MacWindow::isInScroll(int x, int y) {
int bLeft = kBorderWidth;
int bTop = kBorderWidth; int bTop = kBorderWidth;
int bRight = kBorderWidth; int bRight = kBorderWidth;
int bBottom = kBorderWidth; int bBottom = kBorderWidth;
if (_macBorder.hasOffsets()) { if (_macBorder.hasOffsets()) {
bLeft = _macBorder.getOffset(kBorderOffsetLeft);
bTop = _macBorder.getOffset(kBorderOffsetTop); bTop = _macBorder.getOffset(kBorderOffsetTop);
bRight = _macBorder.getOffset(kBorderOffsetRight); bRight = _macBorder.getOffset(kBorderOffsetRight);
bBottom = _macBorder.getOffset(kBorderOffsetBottom); bBottom = _macBorder.getOffset(kBorderOffsetBottom);

View file

@ -235,9 +235,6 @@ void NinePatchBitmap::blit(Graphics::Surface &target, int dx, int dy, int dw, in
drawRegions(srf, dx, dy, dw, dh); drawRegions(srf, dx, dy, dw, dh);
byte black = getColorIndex(TS_RGB(0, 0, 0), palette);
byte white = getColorIndex(TS_RGB(255, 255, 255), palette);
for (uint i = 0; i < srf.w; ++i) { for (uint i = 0; i < srf.w; ++i) {
for (uint j = 0; j < srf.h; ++j) { for (uint j = 0; j < srf.h; ++j) {
uint32 color = *(uint32*)srf.getBasePtr(i, j); uint32 color = *(uint32*)srf.getBasePtr(i, j);