mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Minor debugger fixes
This commit is contained in:
parent
c1ffebf54c
commit
eb2871f766
2 changed files with 4 additions and 4 deletions
|
@ -270,7 +270,7 @@ void ImGePixelViewer::UpdateTexture(Draw::DrawContext *draw) {
|
|||
uint32_t *dst32 = (uint32_t *)dst;
|
||||
uint16_t *src16 = (uint16_t *)dst;
|
||||
for (int x = 0; x < width; x++) {
|
||||
dst[x] = (src16[x] >> 15) ? 0xFFFFFFFF : 0xFF000000;
|
||||
dst32[x] = (src16[x] >> 15) ? 0xFFFFFFFF : 0xFF000000;
|
||||
}
|
||||
} else {
|
||||
ConvertRGBA5551ToRGBA8888((u32 *)dst, (const u16 *)src, width);
|
||||
|
@ -732,6 +732,8 @@ void ImGeDebuggerWindow::NotifyStep() {
|
|||
swViewer_.showAlpha = false;
|
||||
swViewer_.useAlpha = false;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
FramebufferManagerCommon *fbman = gpuDebug->GetFramebufferManagerCommon();
|
||||
|
@ -1017,7 +1019,7 @@ void ImGeDebuggerWindow::Draw(ImConfig &cfg, ImControl &control, GPUDebugInterfa
|
|||
if (lookup->FormatValueAt(temp, sizeof(temp), x, y)) {
|
||||
ImGui::Text("(%d, %d): %s", x, y, temp);
|
||||
} else {
|
||||
ImGui::Text("%d, %d: N/A");
|
||||
ImGui::Text("%d, %d: N/A", x, y);
|
||||
}
|
||||
} else {
|
||||
ImGui::TextUnformatted("(no pixel hovered)");
|
||||
|
|
|
@ -48,8 +48,6 @@ class ImGeStateWindow {
|
|||
public:
|
||||
void Draw(ImConfig &cfg, ImControl &control, GPUDebugInterface *gpuDebug);
|
||||
void Snapshot();
|
||||
private:
|
||||
u32 prevState_[256]{};
|
||||
};
|
||||
|
||||
namespace Draw {
|
||||
|
|
Loading…
Add table
Reference in a new issue