Mercurial > dwindows
comparison gtk/dw.c @ 264:20becf7df38a
Prevent duplicate thread IDs from getting added to the thread list.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 25 Feb 2003 20:38:12 +0000 |
parents | 22a215209887 |
children | 84471d53ab58 |
comparison
equal
deleted
inserted
replaced
263:10a34404c825 | 264:20becf7df38a |
---|---|
756 { | 756 { |
757 int z; | 757 int z; |
758 | 758 |
759 for(z=0;z<DW_THREAD_LIMIT;z++) | 759 for(z=0;z<DW_THREAD_LIMIT;z++) |
760 { | 760 { |
761 if(_dw_thread_list[z] == tid) | |
762 return; | |
763 | |
761 if(_dw_thread_list[z] == (DWTID)-1) | 764 if(_dw_thread_list[z] == (DWTID)-1) |
762 { | 765 { |
763 _dw_thread_list[z] = tid; | 766 _dw_thread_list[z] = tid; |
764 _foreground[z].pixel = _foreground[z].red =_foreground[z].green = _foreground[z].blue = 0; | 767 _foreground[z].pixel = _foreground[z].red =_foreground[z].green = _foreground[z].blue = 0; |
765 _background[z].pixel = 0; | 768 _background[z].pixel = 0; |