shithub: cstory

Download patch

ref: ccf1a6cd23d719fe8875022e36d6a6031b4c8eb9
parent: 7987243427ebd8b333663076f65ef37a2d28044b
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Oct 14 16:02:03 EDT 2020

3DS - No more 'depth = 0.5'

We're not doing 3D

--- a/src/Backends/Rendering/3DS.cpp
+++ b/src/Backends/Rendering/3DS.cpp
@@ -184,7 +184,7 @@
 
 	SelectRenderTarget(screen_render_target);
 
-	C2D_DrawImageAt(image, (400 - framebuffer_surface->width) / 2, (240 - framebuffer_surface->height) / 2, 0.5f, NULL, 1.0f, 1.0f);
+	C2D_DrawImageAt(image, (400 - framebuffer_surface->width) / 2, (240 - framebuffer_surface->height) / 2, 0.0f, NULL, 1.0f, 1.0f);
 
 	EndRendering();
 }
@@ -334,7 +334,7 @@
 
 	SelectRenderTarget(destination_surface->render_target);
 
-	C2D_DrawImageAt(image, x, y, 0.5f, NULL, 1.0f, 1.0f);
+	C2D_DrawImageAt(image, x, y, 0.0f, NULL, 1.0f, 1.0f);
 }
 
 void RenderBackend_ColourFill(RenderBackend_Surface *surface, const RenderBackend_Rect *rect, unsigned char red, unsigned char green, unsigned char blue)
@@ -345,7 +345,7 @@
 
 	SelectRenderTarget(surface->render_target);
 
-	C2D_DrawRectSolid(rect->left, rect->top, 0.5f, rect->right - rect->left, rect->bottom - rect->top, C2D_Color32(red, green, blue, red == 0 && green == 0 && blue == 0 ? 0 : 0xFF));
+	C2D_DrawRectSolid(rect->left, rect->top, 0.0f, rect->right - rect->left, rect->bottom - rect->top, C2D_Color32(red, green, blue, red == 0 && green == 0 && blue == 0 ? 0 : 0xFF));
 }
 
 RenderBackend_GlyphAtlas* RenderBackend_CreateGlyphAtlas(size_t width, size_t height)
@@ -461,7 +461,7 @@
 	image.tex = &glyph_atlas->texture;
 	image.subtex = &subtexture;
 
-	C2D_DrawImageAt(image, x, y, 0.5f, &glyph_tint, 1.0f, 1.0f);
+	C2D_DrawImageAt(image, x, y, 0.0f, &glyph_tint, 1.0f, 1.0f);
 }
 
 void RenderBackend_HandleRenderTargetLoss(void)