mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-29 01:42:32 +01:00
WINGs: Added 'const' attribute to functions in wapplication, wappresource, wcolor, wfont, wpixmap
This makes both the API and local function const-correct on their input parameters.
This commit is contained in:
committed by
Carlos R. Mafra
parent
af403073f0
commit
e7c8ac76ea
@@ -77,17 +77,17 @@ WMPixmap *WMGetApplicationIconPixmap(WMScreen * scr)
|
||||
return scr->applicationIconPixmap;
|
||||
}
|
||||
|
||||
WMPixmap *WMCreateApplicationIconBlendedPixmap(WMScreen * scr, RColor * color)
|
||||
WMPixmap *WMCreateApplicationIconBlendedPixmap(WMScreen * scr, const RColor * color)
|
||||
{
|
||||
WMPixmap *pix;
|
||||
|
||||
if (scr->applicationIconImage) {
|
||||
RColor gray;
|
||||
|
||||
gray.red = 0xae;
|
||||
gray.green = 0xaa;
|
||||
gray.blue = 0xae;
|
||||
gray.alpha = 0xff;
|
||||
static const RColor gray = {
|
||||
/* red */ 0xAE,
|
||||
/* green */ 0xAA,
|
||||
/* blue */ 0xAE,
|
||||
/* alpha */ 0xFF
|
||||
};
|
||||
|
||||
if (!color)
|
||||
color = &gray;
|
||||
|
||||
Reference in New Issue
Block a user