rename draw_get_context() to draw_context_new()
This commit is contained in:
parent
c26d5242d5
commit
30eba52596
|
@ -102,7 +102,7 @@ main(int argc, char **argv)
|
|||
|
||||
XStoreName(disp, sw->window, "awmessage");
|
||||
|
||||
ctx = draw_get_context(disp, DefaultScreen(disp),
|
||||
ctx = draw_context_new(disp, DefaultScreen(disp),
|
||||
geometry.width, geometry.height, sw->drawable);
|
||||
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
* \return draw context ref
|
||||
*/
|
||||
DrawCtx *
|
||||
draw_get_context(Display *disp, int phys_screen, int width, int height, Drawable dw)
|
||||
draw_context_new(Display *disp, int phys_screen, int width, int height, Drawable dw)
|
||||
{
|
||||
DrawCtx *d = p_new(DrawCtx, 1);
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ typedef struct
|
|||
int depth;
|
||||
} DrawCtx;
|
||||
|
||||
DrawCtx *draw_get_context(Display *, int, int, int, Drawable);
|
||||
DrawCtx *draw_context_new(Display *, int, int, int, Drawable);
|
||||
void draw_text(DrawCtx *, Area, Alignment, int, XftFont *, const char *, XColor fg, XColor bg);
|
||||
void draw_rectangle(DrawCtx *, Area, Bool, XColor);
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ statusbar_draw(Statusbar *statusbar)
|
|||
break;
|
||||
}
|
||||
|
||||
DrawCtx *ctx = draw_get_context(globalconf.display,
|
||||
DrawCtx *ctx = draw_context_new(globalconf.display,
|
||||
phys_screen,
|
||||
statusbar->width,
|
||||
statusbar->height,
|
||||
|
|
Loading…
Reference in New Issue