Skip to content

Commit 17747f9

Browse files
committed
lstopo/windows: remove an unneeded global struct field
Signed-off-by: Brice Goglin <[email protected]>
1 parent d4bd851 commit 17747f9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

utils/lstopo/lstopo-windows.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
struct lstopo_windows_output {
2727
struct lstopo_output *loutput;
2828
PAINTSTRUCT ps;
29-
HWND toplevel;
3029
};
3130

3231
static struct lstopo_windows_output the_output;
@@ -205,7 +204,7 @@ WndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam)
205204

206205
/* SetWindowPos() generates a WM_SIZE event, we don't want to scale the drawing there */
207206
ignore_wm_size = 1;
208-
SetWindowPos(the_output.toplevel, HWND_TOP, 0, 0, rect.right - rect.left, rect.bottom - rect.top, SWP_NOCOPYBITS|SWP_NOMOVE|SWP_NOOWNERZORDER|SWP_NOZORDER);
207+
SetWindowPos(hwnd, HWND_TOP, 0, 0, rect.right - rect.left, rect.bottom - rect.top, SWP_NOCOPYBITS|SWP_NOMOVE|SWP_NOOWNERZORDER|SWP_NOZORDER);
209208
ignore_wm_size = 0;
210209

211210
needs_resize = 0;
@@ -486,7 +485,6 @@ output_windows (struct lstopo_output *loutput, const char *dummy __hwloc_attribu
486485
lstopo_prepare_custom_styles(loutput);
487486

488487
lstopo_show_interactive_help();
489-
the_output.toplevel = toplevel;
490488
ShowWindow(toplevel, SW_SHOWDEFAULT);
491489
UpdateWindow(toplevel);
492490

0 commit comments

Comments
 (0)