diff --git a/programs/network/ircc/gui.inc b/programs/network/ircc/gui.inc index b3c44c0c0a..a8d587af83 100644 --- a/programs/network/ircc/gui.inc +++ b/programs/network/ircc/gui.inc @@ -53,10 +53,9 @@ draw_window: ; Completely redraw the window, recalculate all coordinates and add edx, 0x33000000 mov edi, str_programname mcall - mcall 12, 2 - - movsx eax, [thread_info+70] ; skip if window rolled up - test eax, 100b + mcall 12, 2 + + test [thread_info.wnd_state], 100b ; skip if window rolled up jne .exit mov ebx, [xsize]