Mercurial > mm7
diff GUI/UI/UIMainMenu.cpp @ 2524:c7264ab7132f
Main menu rendered using d3d11
author | a.parshin |
---|---|
date | Fri, 10 Oct 2014 17:42:05 +0300 |
parents | 491f0babd563 |
children | a902abdfc7f2 |
line wrap: on
line diff
--- a/GUI/UI/UIMainMenu.cpp Thu Oct 09 23:33:36 2014 +0300 +++ b/GUI/UI/UIMainMenu.cpp Fri Oct 10 17:42:05 2014 +0300 @@ -33,8 +33,6 @@ for (uint i = 0; i < window->GetHeight(); ++i) pSRZBufferLineOffsets[i] = window->GetWidth() * i; - pRenderer->ResetTextureClipRect(); - uTextureID_FONTPAL = pIcons_LOD->LoadTexture("FONTPAL", TEXTURE_16BIT_PALETTE); pFontArrus = LoadFont("arrus.fnt", "FONTPAL", nullptr); @@ -321,10 +319,10 @@ { pRenderer->BeginScene(); pRenderer->DrawTextureRGB(0, 0, &mm6title_texture); - pRenderer->SetTextureClipRect(credit_window.uFrameX, credit_window.uFrameY, credit_window.uFrameX + credit_window.uFrameWidth, + pRenderer->SetUIClipRect(credit_window.uFrameX, credit_window.uFrameY, credit_window.uFrameX + credit_window.uFrameWidth, credit_window.uFrameY + credit_window.uFrameHeight); pRenderer->CreditsTextureScroll(credit_window.uFrameX, credit_window.uFrameY, 0, move_Y, &cred_texture); - pRenderer->ResetTextureClipRect(); + pRenderer->ResetUIClipRect(); pRenderer->EndScene(); ++move_Y; if ( move_Y >= cred_texture.uHeight )