mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-22 23:12:21 +00:00
[CHG] Fixed an issue where the screen started to glitch when drawing outside the viewport.
This commit is contained in:
parent
eb1002f395
commit
269cc33794
1 changed files with 2 additions and 2 deletions
|
@ -779,7 +779,7 @@ void GRRLIB_ClipDrawing( int x, int y, int width, int height ) {
|
||||||
* Reset the clipping to normal.
|
* Reset the clipping to normal.
|
||||||
*/
|
*/
|
||||||
void GRRLIB_ClipReset() {
|
void GRRLIB_ClipReset() {
|
||||||
GX_SetClipMode( GX_CLIP_DISABLE );
|
GX_SetClipMode( GX_CLIP_ENABLE );
|
||||||
GX_SetScissor( 0, 0, rmode->fbWidth, rmode->efbHeight );
|
GX_SetScissor( 0, 0, rmode->fbWidth, rmode->efbHeight );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1116,7 +1116,6 @@ void GRRLIB_Init() {
|
||||||
// Other GX setup
|
// Other GX setup
|
||||||
yscale = GX_GetYScaleFactor(rmode->efbHeight, rmode->xfbHeight);
|
yscale = GX_GetYScaleFactor(rmode->efbHeight, rmode->xfbHeight);
|
||||||
xfbHeight = GX_SetDispCopyYScale(yscale);
|
xfbHeight = GX_SetDispCopyYScale(yscale);
|
||||||
GX_SetScissor(0, 0, rmode->fbWidth, rmode->efbHeight);
|
|
||||||
GX_SetDispCopySrc(0, 0, rmode->fbWidth, rmode->efbHeight);
|
GX_SetDispCopySrc(0, 0, rmode->fbWidth, rmode->efbHeight);
|
||||||
GX_SetDispCopyDst(rmode->fbWidth, xfbHeight);
|
GX_SetDispCopyDst(rmode->fbWidth, xfbHeight);
|
||||||
GX_SetCopyFilter(rmode->aa, rmode->sample_pattern, GX_TRUE, rmode->vfilter);
|
GX_SetCopyFilter(rmode->aa, rmode->sample_pattern, GX_TRUE, rmode->vfilter);
|
||||||
|
@ -1166,6 +1165,7 @@ void GRRLIB_Init() {
|
||||||
GX_SetAlphaCompare(GX_GREATER, 0, GX_AOP_AND, GX_ALWAYS, 0);
|
GX_SetAlphaCompare(GX_GREATER, 0, GX_AOP_AND, GX_ALWAYS, 0);
|
||||||
GX_SetColorUpdate(GX_ENABLE);
|
GX_SetColorUpdate(GX_ENABLE);
|
||||||
GX_SetCullMode(GX_CULL_NONE);
|
GX_SetCullMode(GX_CULL_NONE);
|
||||||
|
GRRLIB_ClipReset();
|
||||||
|
|
||||||
VIDEO_SetBlack(false);
|
VIDEO_SetBlack(false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue