| 1941 | // ---------------------------------------------------------------------------------------- |
| 1942 | |
| 1943 | void base_window:: |
| 1944 | invalidate_rectangle ( |
| 1945 | const rectangle& rect |
| 1946 | ) |
| 1947 | { |
| 1948 | using namespace gui_core_kernel_2_globals; |
| 1949 | auto_mutex a(wm); |
| 1950 | if (is_mapped == false) |
| 1951 | return; |
| 1952 | |
| 1953 | if (rect.is_empty() == false && !has_been_destroyed) |
| 1954 | { |
| 1955 | const long x = rect.left(); |
| 1956 | const long y = rect.top(); |
| 1957 | const unsigned long width = rect.width(); |
| 1958 | const unsigned long height = rect.height(); |
| 1959 | |
| 1960 | XClearArea(x11_stuff.globals->disp,x11_stuff.hwnd,x,y,width,height,1); |
| 1961 | XFlush(x11_stuff.globals->disp); |
| 1962 | } |
| 1963 | } |
| 1964 | |
| 1965 | // ---------------------------------------------------------------------------------------- |
| 1966 | |