mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Show preview pixel values only when displayed.
This prevents it from showing after resume.
This commit is contained in:
parent
720c6a30d5
commit
50b2160711
2 changed files with 10 additions and 2 deletions
|
@ -282,7 +282,9 @@ void CGEDebugger::PreviewFramebufHover(int x, int y) {
|
|||
|
||||
wchar_t desc[256] = {0};
|
||||
|
||||
if (x < 0 || y < 0) {
|
||||
if (!frameWindow->HasTex()) {
|
||||
desc[0] = 0;
|
||||
} else if (x < 0 || y < 0) {
|
||||
// This means they left the area.
|
||||
GPUgstate state = {0};
|
||||
if (gpuDebug != nullptr) {
|
||||
|
@ -412,7 +414,9 @@ void CGEDebugger::PreviewTextureHover(int x, int y) {
|
|||
|
||||
wchar_t desc[256] = {0};
|
||||
|
||||
if (x < 0 || y < 0) {
|
||||
if (!texWindow->HasTex()) {
|
||||
desc[0] = 0;
|
||||
} else if (x < 0 || y < 0) {
|
||||
// This means they left the area.
|
||||
GPUgstate state = {0};
|
||||
if (gpuDebug != nullptr) {
|
||||
|
|
|
@ -83,6 +83,10 @@ struct SimpleGLWindow {
|
|||
return h_;
|
||||
}
|
||||
|
||||
bool HasTex() {
|
||||
return tw_ > 0 && th_ > 0;
|
||||
}
|
||||
|
||||
int TexWidth() {
|
||||
return tw_;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue