Assorted warning fixes and cleanups

This commit is contained in:
Henrik Rydgard committed 2013-07-06 11:09:19 +02:00
1 parent 7960bd0767
commit a599bf7500
9 files changed
+67 -70

No files matched your search

+5 -2
View File
@@ -135,8 +135,10 @@ void CenterRect(float *x, float *y, float *w, float *h,
FramebufferManager::FramebufferManager() :
ramDisplayFramebufPtr_(0),
displayFramebuf_(0),
displayFramebufPtr_(0),
displayStride_(0),
displayFormat_(0),
displayFramebuf_(0),
prevDisplayFramebuf_(0),
prevPrevDisplayFramebuf_(0),
frameLastFramebufUsed(0),
@@ -831,6 +833,7 @@ void FramebufferManager::BlitFramebuffer_(VirtualFramebuffer *src, VirtualFrameb
fbo_unbind();
}
// TODO: SSE/NEON
void ConvertFromRGBA8888(u8 *dst, u8 *src, u32 stride, u32 height, int format) {
if(format == GE_FORMAT_8888) {
if(src == dst) {
@@ -840,7 +843,7 @@ void ConvertFromRGBA8888(u8 *dst, u8 *src, u32 stride, u32 height, int format) {
}
} else { // But here it shouldn't matter if they do
u32 size = height * stride;
u32 *src32 = (u32 *)src;
const u32 *src32 = (const u32 *)src;
u16 *dst16 = (u16 *)dst;
switch (format) {
case GE_FORMAT_565: // BGR 565