; simple refresh patch
; last update 13/12/2003

REFRESHBIT0 equ $06

OpenWindow
    ;cmp.w   #WBENCHSCREEN,nw_Type(a0)
    ;bne.s   dontchange
    move.l  nw_Flags(a0),d0
    bset    #REFRESHBIT0,d0     ; We want SIMPLE_REFRESH ones.
    move.l  d0,nw_Flags(a0)
dontchange
    move.l  oldopenwindow(PC),a1
    jmp (a1)            ; Jump to original code.
 cnop 0,4
oldopenwindow: ds.l 1
