Mercurial > dwindows
diff mac/dw.m @ 1212:5271d5cb27ac
Implemented dw_container_set_row_bg() on Windows.
Current immplementation is a bit slow, it does more redrawing than necessary...
but it works for now... will look to improve it in the future.
Also removed a lot of dead code from a previous attempt at implementation.
Also flipped the default colors on Mac since the first index is even (0) not odd (1).
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 09 Oct 2011 09:50:07 +0000 |
parents | 5a016a5a7412 |
children | dc8ea09605f7 |
line wrap: on
line diff
--- a/mac/dw.m Sat Oct 08 20:47:34 2011 +0000 +++ b/mac/dw.m Sun Oct 09 09:50:07 2011 +0000 @@ -5761,8 +5761,8 @@ int _locked_by_me = FALSE; DW_MUTEX_LOCK; DWContainer *cont = handle; - [cont setRowBgOdd:(oddcolor == DW_CLR_DEFAULT ? DW_RGB_TRANSPARENT : oddcolor) - andEven:(evencolor == DW_CLR_DEFAULT ? DW_RGB(230,230,230) : evencolor)]; + [cont setRowBgOdd:(oddcolor == DW_CLR_DEFAULT ? DW_RGB(230,230,230) : oddcolor) + andEven:(evencolor == DW_CLR_DEFAULT ? DW_RGB_TRANSPARENT : evencolor)]; DW_MUTEX_UNLOCK; }