removed line

This commit is contained in:
2025-12-07 19:05:32 +01:00
parent 9d989ab395
commit 972588fa59

View File

@ -439,8 +439,8 @@ void GameRenderer::renderNextPanel(
SDL_RenderLine(renderer, right, top, right, bottom); // right edge SDL_RenderLine(renderer, right, top, right, bottom); // right edge
}; };
//drawOutlineNoBottom(thinOutline, gridBorderColor); drawOutlineNoBottom(thinOutline, gridBorderColor);
//drawOutlineNoBottom(bayRect, bayOutline); drawOutlineNoBottom(bayRect, bayOutline);
const float labelPad = tileSize * 0.25f; const float labelPad = tileSize * 0.25f;
pixelFont->draw(renderer, panelX + labelPad, panelY + labelPad * 0.5f, "NEXT", 0.9f, labelColor); pixelFont->draw(renderer, panelX + labelPad, panelY + labelPad * 0.5f, "NEXT", 0.9f, labelColor);
@ -837,10 +837,14 @@ void GameRenderer::renderPlayingState(
renderNextPanel(renderer, pixelFont, blocksTex, nextPanelTex, game->next(), NEXT_PANEL_X, NEXT_PANEL_Y, NEXT_PANEL_WIDTH, NEXT_PANEL_HEIGHT, finalBlockSize); renderNextPanel(renderer, pixelFont, blocksTex, nextPanelTex, game->next(), NEXT_PANEL_X, NEXT_PANEL_Y, NEXT_PANEL_WIDTH, NEXT_PANEL_HEIGHT, finalBlockSize);
// Draw a small filled connector to visually merge NEXT panel and grid border // Draw a small filled connector to visually merge NEXT panel and grid border
// If an external NEXT panel texture is used, skip the connector to avoid
// drawing a visible seam under the image/artwork.
if (!nextPanelTex) {
SDL_SetRenderDrawColor(renderer, 60, 80, 160, 255); // same as grid border SDL_SetRenderDrawColor(renderer, 60, 80, 160, 255); // same as grid border
float connectorY = NEXT_PANEL_Y + NEXT_PANEL_HEIGHT; // bottom of next panel (near grid top) float connectorY = NEXT_PANEL_Y + NEXT_PANEL_HEIGHT; // bottom of next panel (near grid top)
SDL_FRect connRect{ NEXT_PANEL_X, connectorY - 1.0f, NEXT_PANEL_WIDTH, 2.0f }; SDL_FRect connRect{ NEXT_PANEL_X, connectorY - 1.0f, NEXT_PANEL_WIDTH, 2.0f };
SDL_RenderFillRect(renderer, &connRect); SDL_RenderFillRect(renderer, &connRect);
}
// Draw transport effect if active (renders the moving piece and trail) // Draw transport effect if active (renders the moving piece and trail)
updateAndDrawTransport(renderer, blocksTex); updateAndDrawTransport(renderer, blocksTex);