mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-15 05:25:53 +01:00
- API change in WINGs for WMDraw*String().
WMDrawString() and WMDrawImageString() now take WMColor instead of GC as arguments. WMDrawImageString() receives 2 colors (text & background). This is to allow easy extension for Xft/Xrender and hide X low level details - Added alpha channel to WMColor. 2 new functions also: WMCreateRGBAColor() and WMSetColorAlpha() - Miscelaneous code cleanups in wtext.c - Removed obsoleted acconfig.h and implemented its functionality using AC_DEFINE and AC_DEFINE_UNQUOTED as autoconf 2.5x recommends. This will definitely enforce the need to use autoconf 2.5x
This commit is contained in:
@@ -333,7 +333,7 @@ paintPopUpButton(PopUpButton *bPtr)
|
||||
W_PaintText(bPtr->view, pixmap, scr->normalFont, 6,
|
||||
(bPtr->view->size.height-WMFontHeight(scr->normalFont))/2,
|
||||
bPtr->view->size.width, WALeft,
|
||||
bPtr->flags.enabled ? WMColorGC(scr->black) : WMColorGC(scr->darkGray),
|
||||
bPtr->flags.enabled ? scr->black : scr->darkGray,
|
||||
False, caption, strlen(caption));
|
||||
}
|
||||
|
||||
@@ -421,7 +421,7 @@ paintMenuEntry(PopUpButton *bPtr, int index, int highlight)
|
||||
width, itemHeight, WRRaised);
|
||||
|
||||
W_PaintText(bPtr->menuView, bPtr->menuView->window, scr->normalFont, 6,
|
||||
index*itemHeight + yo, width, WALeft, WMColorGC(scr->black),
|
||||
index*itemHeight + yo, width, WALeft, scr->black,
|
||||
False, title, strlen(title));
|
||||
|
||||
if (!bPtr->flags.pullsDown && index == bPtr->selectedItemIndex) {
|
||||
@@ -457,7 +457,7 @@ makeMenuPixmap(PopUpButton *bPtr)
|
||||
|
||||
i = 0;
|
||||
WM_ITERATE_ARRAY(bPtr->items, item, iter) {
|
||||
GC gc;
|
||||
WMColor *color;
|
||||
char *text;
|
||||
|
||||
text = WMGetMenuItemTitle(item);
|
||||
@@ -466,12 +466,12 @@ makeMenuPixmap(PopUpButton *bPtr)
|
||||
WRRaised);
|
||||
|
||||
if (!WMGetMenuItemEnabled(item))
|
||||
gc = WMColorGC(scr->darkGray);
|
||||
color = scr->darkGray;
|
||||
else
|
||||
gc = WMColorGC(scr->black);
|
||||
color = scr->black;
|
||||
|
||||
W_PaintText(bPtr->menuView, pixmap, scr->normalFont, 6,
|
||||
i*itemHeight + yo, width, WALeft, gc, False,
|
||||
i*itemHeight + yo, width, WALeft, color, False,
|
||||
text, strlen(text));
|
||||
|
||||
if (!bPtr->flags.pullsDown && i == bPtr->selectedItemIndex) {
|
||||
|
||||
Reference in New Issue
Block a user