mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-30 04:20:23 +00:00
Remove bevel_box() and SkinTheme::draw_bevel_box()
This commit is contained in:
parent
a517deee0d
commit
7adf1d1a25
@ -273,21 +273,6 @@ void rect_tracker_free(RectTracker* rt)
|
|||||||
/**********************************************************************/
|
/**********************************************************************/
|
||||||
/* Rectangles */
|
/* Rectangles */
|
||||||
|
|
||||||
void bevel_box(BITMAP* bmp, int x1, int y1, int x2, int y2, int c1, int c2, int bevel)
|
|
||||||
{
|
|
||||||
hline(bmp, x1+bevel, y1, x2-bevel, c1); /* top */
|
|
||||||
hline(bmp, x1+bevel, y2, x2-bevel, c2); /* bottom */
|
|
||||||
|
|
||||||
vline(bmp, x1, y1+bevel, y2-bevel, c1); /* left */
|
|
||||||
vline(bmp, x2, y1+bevel, y2-bevel, c2); /* right */
|
|
||||||
|
|
||||||
line(bmp, x1, y1+bevel, x1+bevel, y1, c1); /* top-left */
|
|
||||||
line(bmp, x1, y2-bevel, x1+bevel, y2, c2); /* bottom-left */
|
|
||||||
|
|
||||||
line(bmp, x2-bevel, y1, x2, y1+bevel, c2); /* top-right */
|
|
||||||
line(bmp, x2-bevel, y2, x2, y2-bevel, c2); /* bottom-right */
|
|
||||||
}
|
|
||||||
|
|
||||||
void rectgrid(BITMAP* bmp, int x1, int y1, int x2, int y2, int w, int h)
|
void rectgrid(BITMAP* bmp, int x1, int y1, int x2, int y2, int w, int h)
|
||||||
{
|
{
|
||||||
if (w < 1 || h < 1)
|
if (w < 1 || h < 1)
|
||||||
|
@ -34,7 +34,6 @@ void dotted_mode(int offset);
|
|||||||
RectTracker* rect_tracker_new(BITMAP* bmp, int x1, int y1, int x2, int y2);
|
RectTracker* rect_tracker_new(BITMAP* bmp, int x1, int y1, int x2, int y2);
|
||||||
void rect_tracker_free(RectTracker* tracker);
|
void rect_tracker_free(RectTracker* tracker);
|
||||||
|
|
||||||
void bevel_box(BITMAP* bmp, int x1, int y1, int x2, int y2, ui::Color c1, ui::Color c2, int bevel);
|
|
||||||
void rectgrid(BITMAP* bmp, int x1, int y1, int x2, int y2, int w, int h);
|
void rectgrid(BITMAP* bmp, int x1, int y1, int x2, int y2, int w, int h);
|
||||||
|
|
||||||
void draw_emptyset_symbol(BITMAP* bmp, const gfx::Rect& rc, ui::Color color);
|
void draw_emptyset_symbol(BITMAP* bmp, const gfx::Rect& rc, ui::Color color);
|
||||||
|
@ -2142,21 +2142,6 @@ void SkinTheme::draw_part_as_vline(BITMAP* bmp, int x1, int y1, int x2, int y2,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SkinTheme::draw_bevel_box(int x1, int y1, int x2, int y2, int c1, int c2, int *bevel)
|
|
||||||
{
|
|
||||||
hline(ji_screen, x1+bevel[0], y1, x2-bevel[1], c1); /* top */
|
|
||||||
hline(ji_screen, x1+bevel[2], y2, x2-bevel[3], c2); /* bottom */
|
|
||||||
|
|
||||||
vline(ji_screen, x1, y1+bevel[0], y2-bevel[2], c1); /* left */
|
|
||||||
vline(ji_screen, x2, y1+bevel[1], y2-bevel[3], c2); /* right */
|
|
||||||
|
|
||||||
line(ji_screen, x1, y1+bevel[0], x1+bevel[0], y1, c1); /* top-left */
|
|
||||||
line(ji_screen, x1, y2-bevel[2], x1+bevel[2], y2, c2); /* bottom-left */
|
|
||||||
|
|
||||||
line(ji_screen, x2-bevel[1], y1, x2, y1+bevel[1], c2); /* top-right */
|
|
||||||
line(ji_screen, x2-bevel[3], y2, x2, y2-bevel[3], c2); /* bottom-right */
|
|
||||||
}
|
|
||||||
|
|
||||||
void SkinTheme::less_bevel(int *bevel)
|
void SkinTheme::less_bevel(int *bevel)
|
||||||
{
|
{
|
||||||
if (bevel[0] > 0) --bevel[0];
|
if (bevel[0] > 0) --bevel[0];
|
||||||
|
@ -186,7 +186,6 @@ private:
|
|||||||
bool fill_bg, ui::Widget* widget, const gfx::Rect& rc,
|
bool fill_bg, ui::Widget* widget, const gfx::Rect& rc,
|
||||||
int selected_offset);
|
int selected_offset);
|
||||||
void draw_entry_caret(ui::Entry* widget, int x, int y);
|
void draw_entry_caret(ui::Entry* widget, int x, int y);
|
||||||
void draw_bevel_box(int x1, int y1, int x2, int y2, int c1, int c2, int *bevel);
|
|
||||||
void less_bevel(int *bevel);
|
void less_bevel(int *bevel);
|
||||||
|
|
||||||
void paintIcon(ui::Widget* widget, ui::Graphics* g, ui::IButtonIcon* iconInterface, int x, int y);
|
void paintIcon(ui::Widget* widget, ui::Graphics* g, ui::IButtonIcon* iconInterface, int x, int y);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user