mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-02 15:02:11 +00:00
Merge branch 'master' of https://github.com/DHrpcs3/rpcs3
This commit is contained in:
commit
b5d588a40b
@ -509,7 +509,7 @@ int cellFontBindRenderer(mem_ptr_t<CellFont> font, mem_ptr_t<CellFontRenderer> r
|
||||
cellFont.Warning("cellFontBindRenderer(font_addr=0x%x, renderer_addr=0x%x)",
|
||||
font.GetAddr(), renderer.GetAddr());
|
||||
|
||||
if (!font.IsGood() || !renderer.GetAddr())
|
||||
if (!font.IsGood() || !renderer.IsGood())
|
||||
return CELL_FONT_ERROR_INVALID_PARAMETER;
|
||||
if (font->renderer_addr)
|
||||
return CELL_FONT_ERROR_RENDERER_ALREADY_BIND;
|
||||
@ -592,11 +592,11 @@ int cellFontRenderCharGlyphImage(mem_ptr_t<CellFont> font, u32 code, mem_ptr_t<C
|
||||
|
||||
// Move the rendered character to the surface
|
||||
unsigned char* buffer = (unsigned char*)Memory.VirtualToRealAddr(surface->buffer_addr);
|
||||
for (u32 ypos = 0; ypos < height; ypos++){
|
||||
for (u32 ypos = 0; ypos < (u32)height; ypos++){
|
||||
if ((u32)y + ypos + yoff + baseLineY >= surface->height)
|
||||
break;
|
||||
|
||||
for (u32 xpos = 0; xpos < width; xpos++){
|
||||
for (u32 xpos = 0; xpos < (u32)width; xpos++){
|
||||
if ((u32)x + xpos >= surface->width)
|
||||
break;
|
||||
|
||||
|
@ -609,9 +609,9 @@ int cellRescGetBufferSize(mem32_t colorBuffers, mem32_t vertexArray, mem32_t fra
|
||||
fragmentUcodeSize = 0x300;
|
||||
}
|
||||
|
||||
if(colorBuffers.GetAddr()) colorBuffers = colorBuffersSize;
|
||||
if(vertexArray.GetAddr()) vertexArray = vertexArraySize;
|
||||
if(fragmentShader.GetAddr()) fragmentShader = fragmentUcodeSize;
|
||||
if(colorBuffers.IsGood()) colorBuffers = colorBuffersSize;
|
||||
if(vertexArray.IsGood()) vertexArray = vertexArraySize;
|
||||
if(fragmentShader.IsGood()) fragmentShader = fragmentUcodeSize;
|
||||
|
||||
return CELL_OK;
|
||||
}
|
||||
@ -725,7 +725,7 @@ int cellRescSetBufferAddress(mem32_t colorBuffers, mem32_t vertexArray, mem32_t
|
||||
|
||||
if(!s_rescInternalInstance->m_bInitialized)
|
||||
return CELL_RESC_ERROR_NOT_INITIALIZED;
|
||||
if(!colorBuffers.GetAddr() || !vertexArray.GetAddr() || !fragmentShader.GetAddr())
|
||||
if(!colorBuffers.IsGood() || !vertexArray.IsGood() || !fragmentShader.IsGood())
|
||||
return CELL_RESC_ERROR_BAD_ARGUMENT;
|
||||
if(colorBuffers.GetAddr() % COLOR_BUFFER_ALIGNMENT ||
|
||||
vertexArray.GetAddr() % VERTEX_BUFFER_ALIGNMENT ||
|
||||
|
Loading…
Reference in New Issue
Block a user