Mercurial > dwindows
comparison win/dw.c @ 370:e5156e7e5f19
Fixes for background set to DW_CLR_DEFAULT.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 27 Apr 2003 18:43:14 +0000 |
parents | 39983df2b93d |
children | e856f80e0520 |
comparison
equal
deleted
inserted
replaced
369:39983df2b93d | 370:e5156e7e5f19 |
---|---|
6716 if(threadid < 0 || threadid >= THREAD_LIMIT) | 6716 if(threadid < 0 || threadid >= THREAD_LIMIT) |
6717 threadid = 0; | 6717 threadid = 0; |
6718 | 6718 |
6719 value = _internal_color(value); | 6719 value = _internal_color(value); |
6720 | 6720 |
6721 _background[threadid] = RGB(DW_RED_VALUE(value), DW_GREEN_VALUE(value), DW_BLUE_VALUE(value)); | 6721 if(value == DW_RGB_TRANSPARENT) |
6722 _background[threadid] = DW_RGB_TRANSPARENT; | |
6723 else | |
6724 _background[threadid] = RGB(DW_RED_VALUE(value), DW_GREEN_VALUE(value), DW_BLUE_VALUE(value)); | |
6722 } | 6725 } |
6723 | 6726 |
6724 /* Draw a point on a window (preferably a render window). | 6727 /* Draw a point on a window (preferably a render window). |
6725 * Parameters: | 6728 * Parameters: |
6726 * handle: Handle to the window. | 6729 * handle: Handle to the window. |