src/widget.cpp
changeset 9779 55b4f7df45cc
parent 9773 fd7309d22bc6
child 9834 7474149531c1
equal deleted inserted replaced
9778:c5dd94ed7c16 9779:55b4f7df45cc
   165  * Draw frame rectangle.
   165  * Draw frame rectangle.
   166  * @param left   Left edge of the frame
   166  * @param left   Left edge of the frame
   167  * @param top    Top edge of the frame
   167  * @param top    Top edge of the frame
   168  * @param right  Right edge of the frame
   168  * @param right  Right edge of the frame
   169  * @param bottom Bottom edge of the frame
   169  * @param bottom Bottom edge of the frame
   170  * @param ctab   Colour table to use. @see _colour_gradient
   170  * @param color  Colour table to use. @see _colour_gradient
   171  * @param flags  Flags controlling how to draw the frame. @see FrameFlags
   171  * @param flags  Flags controlling how to draw the frame. @see FrameFlags
   172  */
   172  */
   173 void DrawFrameRect(int left, int top, int right, int bottom, int ctab, FrameFlags flags)
   173 void DrawFrameRect(int left, int top, int right, int bottom, int color, FrameFlags flags)
   174 {
   174 {
   175 	uint dark         = _colour_gradient[ctab][3];
   175 	uint dark         = _colour_gradient[color][3];
   176 	uint medium_dark  = _colour_gradient[ctab][5];
   176 	uint medium_dark  = _colour_gradient[color][5];
   177 	uint medium_light = _colour_gradient[ctab][6];
   177 	uint medium_light = _colour_gradient[color][6];
   178 	uint light        = _colour_gradient[ctab][7];
   178 	uint light        = _colour_gradient[color][7];
   179 
   179 
   180 	if (flags & FR_TRANSPARENT) {
   180 	if (flags & FR_TRANSPARENT) {
   181 		GfxFillRect(left, top, right, bottom, PALETTE_TO_TRANSPARENT, FILLRECT_RECOLOR);
   181 		GfxFillRect(left, top, right, bottom, PALETTE_TO_TRANSPARENT, FILLRECT_RECOLOR);
   182 	} else {
   182 	} else {
   183 		uint interior;
   183 		uint interior;