From 56ab3ac5cf69499043920bddefd5f2b9f42cbb07 Mon Sep 17 00:00:00 2001 From: "wrenczes@gmail.com" Date: Mon, 25 Apr 2011 05:26:46 +0000 Subject: [PATCH] Minor code cleanup: removed a path to fetch thumbnails in the non-threaded code - at this point, it's trying to draw in text mode, so this shouldn't be here (it was always stepped over because of the options flag, so it was never executing anyway). --- projects/mtg/src/GameStateDeckViewer.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/projects/mtg/src/GameStateDeckViewer.cpp b/projects/mtg/src/GameStateDeckViewer.cpp index b582d42cb..87f7a955f 100644 --- a/projects/mtg/src/GameStateDeckViewer.cpp +++ b/projects/mtg/src/GameStateDeckViewer.cpp @@ -1354,13 +1354,6 @@ void GameStateDeckViewer::renderCard(int id, float rotation) { Pos pos = Pos(x, y, scale * 285 / 250, 0.0, 255); CardGui::DrawCard(card, pos, DrawMode::kText); - if (!options[Options::DISABLECARDS].number) quad = WResourceManager::Instance()->RetrieveCard(card, CACHE_THUMB); - if (quad.get()) - { - float _scale = 285 * scale / quad->mHeight; - quad->SetColor(ARGB(40,255,255,255)); - JRenderer::GetInstance()->RenderQuad(quad.get(), x, y, 0, _scale, _scale); - } } } else