]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
GUI control right dpad: don't jump to root node if no more child nodes.
authorToni Wilen <twilen@winuae.net>
Sun, 8 Oct 2023 15:59:21 +0000 (18:59 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 8 Oct 2023 15:59:21 +0000 (18:59 +0300)
od-win32/win32gui_extra.cpp

index 5fb753bc52a4d286ada4fbcdcd1a46ac57ae065b..b11447f20dafe4746debd6c6daa5023794696044 100644 (file)
@@ -2275,7 +2275,7 @@ void gui_cursor(HWND hwnd, struct newresource *ns, int x, int y, int click)
                                RECT r;
                                GetWindowRect(h, &r);
                                currres = txy;
-                               write_log("%p %d\n", currres->nres->hwnd, currres->region);
+                               //write_log("%p %d\n", currres->nres->hwnd, currres->region);
                                break;
                        }
                }
@@ -2402,6 +2402,7 @@ void gui_cursor(HWND hwnd, struct newresource *ns, int x, int y, int click)
                                                for (;;) {
                                                        next2 = TreeView_GetNextItem(h, next2, TVGN_NEXT);
                                                        if (!next2) {
+                                                               next = c;
                                                                break;
                                                        }
                                                        next = TreeView_GetNextItem(h, next2, TVGN_CHILD);