changeset 2642 | cb99ff2e49a7 |
parent 2639 | 8a7342eb3a78 |
child 2683 | 6f67fcf73873 |
--- a/widget.c Tue Nov 15 08:40:45 2005 +0000 +++ b/widget.c Tue Nov 15 08:49:46 2005 +0000 @@ -223,10 +223,10 @@ DrawFrameRect(r.left, r.top, r.right, r.bottom, wi->color, (clicked) ? FR_LOWERED : 0); - c = (wi->unkA&0xFF); + c = GB(wi->unkA, 0, 8); amt1 = (wi->right - wi->left + 1) / c; - d = (wi->unkA >> 8); + d = GB(wi->unkA, 8, 8); amt2 = (wi->bottom - wi->top + 1) / d; color = _color_list[wi->color & 0xF].window_color_bgb;