mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
silence some annoying warnings
This commit is contained in:
parent
70e26eeb45
commit
ef6f565dbd
18 changed files with 80 additions and 70 deletions
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
|
||||
#include "rsx_debugger.h"
|
||||
#include "qt_utils.h"
|
||||
|
||||
|
|
@ -369,18 +369,15 @@ void Buffer::ShowWindowed()
|
|||
if (!render)
|
||||
return;
|
||||
|
||||
const auto buffers = render->display_buffers;
|
||||
|
||||
// TODO: Is there any better way to choose the color buffers
|
||||
#define SHOW_BUFFER(id) \
|
||||
{ \
|
||||
u32 addr = rsx::constants::local_mem_base + buffers[id].offset; \
|
||||
if (vm::check_addr(addr) && buffers[id].width && buffers[id].height) \
|
||||
memory_viewer_panel::ShowImage(this, addr, 3, buffers[id].width, buffers[id].height, true); \
|
||||
return; \
|
||||
} \
|
||||
|
||||
//if (0 <= m_id && m_id < 4) SHOW_BUFFER(m_id);
|
||||
//if (0 <= m_id && m_id < 4)
|
||||
//{
|
||||
// const auto buffers = render->display_buffers;
|
||||
// u32 addr = rsx::constants::local_mem_base + buffers[m_id].offset;
|
||||
// if (vm::check_addr(addr) && buffers[m_id].width && buffers[m_id].height)
|
||||
// memory_viewer_panel::ShowImage(this, addr, 3, buffers[m_id].width, buffers[m_id].height, true);
|
||||
// return;
|
||||
//}
|
||||
|
||||
gui::utils::show_windowed_image(m_image, title());
|
||||
|
||||
|
|
@ -394,7 +391,6 @@ void Buffer::ShowWindowed()
|
|||
render->textures[m_cur_texture].width(),
|
||||
render->textures[m_cur_texture].height(), false);*/
|
||||
}
|
||||
#undef SHOW_BUFFER
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue