Removed more redundant tabs.
This commit is contained in:
parent
9d6d3fcff4
commit
3d5115bb28
@ -31,17 +31,17 @@ void gfxSet3D(bool enable)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void gfxSetScreenFormat(gfxScreen_t screen, GSP_FramebufferFormats format) {
|
void gfxSetScreenFormat(gfxScreen_t screen, GSP_FramebufferFormats format) {
|
||||||
if(screen==GFX_TOP)
|
if(screen==GFX_TOP)
|
||||||
topFormat = format;
|
topFormat = format;
|
||||||
else
|
else
|
||||||
botFormat = format;
|
botFormat = format;
|
||||||
}
|
}
|
||||||
|
|
||||||
GSP_FramebufferFormats gfxGetScreenFormat(gfxScreen_t screen) {
|
GSP_FramebufferFormats gfxGetScreenFormat(gfxScreen_t screen) {
|
||||||
if(screen==GFX_TOP)
|
if(screen==GFX_TOP)
|
||||||
return topFormat;
|
return topFormat;
|
||||||
else
|
else
|
||||||
return botFormat;
|
return botFormat;
|
||||||
}
|
}
|
||||||
|
|
||||||
void gfxSetDoubleBuffering( gfxScreen_t screen, bool doubleBuffering) {
|
void gfxSetDoubleBuffering( gfxScreen_t screen, bool doubleBuffering) {
|
||||||
@ -49,18 +49,18 @@ void gfxSetDoubleBuffering( gfxScreen_t screen, bool doubleBuffering) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static u32 __get_bytes_per_pixel(GSP_FramebufferFormats format) {
|
static u32 __get_bytes_per_pixel(GSP_FramebufferFormats format) {
|
||||||
switch(format) {
|
switch(format) {
|
||||||
case GSP_RGBA8_OES:
|
case GSP_RGBA8_OES:
|
||||||
return 4;
|
return 4;
|
||||||
case GSP_BGR8_OES:
|
case GSP_BGR8_OES:
|
||||||
return 3;
|
|
||||||
case GSP_RGB565_OES:
|
|
||||||
case GSP_RGB5_A1_OES:
|
|
||||||
case GSP_RGBA4_OES:
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 3;
|
return 3;
|
||||||
|
case GSP_RGB565_OES:
|
||||||
|
case GSP_RGB5_A1_OES:
|
||||||
|
case GSP_RGBA4_OES:
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
void gfxSetFramebufferInfo(gfxScreen_t screen, u8 id)
|
void gfxSetFramebufferInfo(gfxScreen_t screen, u8 id)
|
||||||
|
Loading…
Reference in New Issue
Block a user