vs 2010 update for deck editor changes as well as SDL update

This commit is contained in:
techdragon.nguyen@gmail.com
2012-01-26 14:54:07 +00:00
parent a2179017d4
commit 85451f69ee
4 changed files with 21 additions and 5 deletions
+1 -1
View File
@@ -1766,7 +1766,7 @@ void GameStateDeckViewer::OnScroll(int inXVelocity, int inYVelocity, int magnitu
offset = 2 + numCards;
mEngine->LeftClickedProcessed();
mEngine->LeftClicked(cardsCoordinates[offset].first, cardsCoordinates[offset].second);
mEngine->LeftClicked(static_cast<int>(cardsCoordinates[offset].first), static_cast<int>(cardsCoordinates[offset].second));
mEngine->HoldKey_NoRepeat(JGE_BTN_OK);
}
else
+2 -2
View File
@@ -68,9 +68,9 @@ void InteractiveButton::Render()
float stringWidth = mainFont->GetStringWidth(detailedInfoString.c_str());
DWORD currentColor = mainFont->GetColor();
#ifndef TOUCH_ENABLED
mXOffset = stringWidth / 2;
mXOffset = 5;
mYOffset = 10;
float boxStartX = getX() - mXOffset;
float boxStartX = getX() - 5;
float pspIconsSize = 0.5;
renderer->FillRoundRect( boxStartX, getY() - 5, stringWidth, mainFont->GetHeight() + 15, .5, ARGB( 255, 0, 0, 0) );
if (buttonImage != NULL)