- use the 2d drawer's size where appropriate.
This commit is contained in:
parent
b18faacab0
commit
ce4c2be3c7
17 changed files with 116 additions and 118 deletions
|
|
@ -96,7 +96,7 @@ void Draw2D(F2DDrawer *drawer, FRenderState &state)
|
|||
|
||||
const auto &mScreenViewport = screen->mScreenViewport;
|
||||
state.SetViewport(mScreenViewport.left, mScreenViewport.top, mScreenViewport.width, mScreenViewport.height);
|
||||
screen->mViewpoints->Set2D(state, screen->GetWidth(), screen->GetHeight());
|
||||
screen->mViewpoints->Set2D(state, twod->GetWidth(), twod->GetHeight());
|
||||
|
||||
state.EnableDepthTest(false);
|
||||
state.EnableMultisampling(false);
|
||||
|
|
|
|||
|
|
@ -113,6 +113,7 @@ void DFrameBuffer::SetSize(int width, int height)
|
|||
{
|
||||
Width = ViewportScaledWidth(width, height);
|
||||
Height = ViewportScaledHeight(width, height);
|
||||
m2DDrawer.SetSize(width, height);
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue