- SDL_Rect destRect;
- destRect.x = position.X();
- destRect.y = position.Y();
- destRect.w = width;
- destRect.h = height;
-
- destRect.x += 1;
- destRect.y += 1;
- destRect.w -= 2;
- destRect.h -= 2;
- SDL_FillRect(screen, &destRect, SDL_MapRGB(screen->format, 0xFF, active ? 0 : 0xFF, active ? 0 : 0xFF));
-
- destRect.x += 1;
- destRect.y += 1;
- destRect.w -= 2;
- destRect.h -= 2;
- SDL_FillRect(screen, &destRect, SDL_MapRGB(screen->format, 0, 0, 0));
+ if (active) {
+ activeFrame->Draw(screen, position, width, height);
+ } else {
+ frame->Draw(screen, position, width, height);
+ }