widget.c
changeset 2642 cb99ff2e49a7
parent 2639 8a7342eb3a78
child 2683 6f67fcf73873
equal deleted inserted replaced
2641:9728651e0d71 2642:cb99ff2e49a7
   221 			int x, amt1, amt2;
   221 			int x, amt1, amt2;
   222 			int color;
   222 			int color;
   223 
   223 
   224 			DrawFrameRect(r.left, r.top, r.right, r.bottom, wi->color, (clicked) ? FR_LOWERED : 0);
   224 			DrawFrameRect(r.left, r.top, r.right, r.bottom, wi->color, (clicked) ? FR_LOWERED : 0);
   225 
   225 
   226 			c = (wi->unkA&0xFF);
   226 			c = GB(wi->unkA, 0, 8);
   227 			amt1 = (wi->right - wi->left + 1) / c;
   227 			amt1 = (wi->right - wi->left + 1) / c;
   228 
   228 
   229 			d = (wi->unkA >> 8);
   229 			d = GB(wi->unkA, 8, 8);
   230 			amt2 = (wi->bottom - wi->top + 1) / d;
   230 			amt2 = (wi->bottom - wi->top + 1) / d;
   231 
   231 
   232 			color = _color_list[wi->color & 0xF].window_color_bgb;
   232 			color = _color_list[wi->color & 0xF].window_color_bgb;
   233 
   233 
   234 			x = r.left;
   234 			x = r.left;