mirror of
https://github.com/gryf/wmaker.git
synced 2026-03-03 07:15:47 +01:00
- put back wmksize(), wmkrange() and wmkpoint() as functions instead of macros
- fixed some compilation warnings with -Wall - some code cleanup
This commit is contained in:
@@ -316,5 +316,31 @@ W_PaintTextAndImage(W_View *view, int wrap, GC textGC, W_Font *font,
|
||||
|
||||
|
||||
|
||||
WMPoint
|
||||
wmkpoint(int x, int y)
|
||||
{
|
||||
WMPoint point;
|
||||
|
||||
point.x = x;
|
||||
point.y = y;
|
||||
|
||||
return point;
|
||||
}
|
||||
|
||||
|
||||
WMSize
|
||||
wmksize(unsigned int width, unsigned int height)
|
||||
{
|
||||
WMSize size;
|
||||
|
||||
size.width = width;
|
||||
size.height = height;
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user