From 85ca9b12e3e8260700e4ec3ccb7d794bcb736118 Mon Sep 17 00:00:00 2001 From: luigi__ Date: Sun, 12 Apr 2009 00:01:12 +0000 Subject: [PATCH] Fixed the mini tile box. It still refreshes the whole screen when clicking a tile. But anyway all that shit will be remade someday. --- desmume/src/windows/tileView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/windows/tileView.cpp b/desmume/src/windows/tileView.cpp index aea0ec771..981922f69 100644 --- a/desmume/src/windows/tileView.cpp +++ b/desmume/src/windows/tileView.cpp @@ -286,7 +286,7 @@ LRESULT CALLBACK TileViewBoxProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPar LRESULT MiniTileViewBox_Paint(HWND hwnd, tileview_struct * win, WPARAM wParam, LPARAM lParam) { - HWND hwnd_src = GetDlgItem(hwnd, IDC_Tile_BOX); + HWND hwnd_src = GetDlgItem(GetParent(hwnd), IDC_Tile_BOX); HDC hdc_src; HDC hdc_dst; char txt[80];