mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Cleanup superfluous.c a bit
The superfluous.[ch] files have a few minor issues, this patch addresses some of them:
- Move the defines to the top of the superfluous.c file
- Include the ifdef NORMAL_ICON_KABOOM inside the DoKaboom() function
because the DoKaboom is used without the NORMAL_ICON_KABOOM ifdef in
other files.
- Include the ifdef WINDOW_BIRTH_ZOOM inside the DoWindowBirth() function,
therefore the function don't needs to be defined twice (with and whitout
WINDOW_BIRTH_ZOOM define.
- Now the functions are defined in superfluous.h and the externs are not
needed.
- We need include the dock.h in the superflous.h because is used by the
definition of MakeGhostDock().
- We need include the superfluous.h in window.c (removing the extern)
This commit is contained in:
committed by
Carlos R. Mafra
parent
cd7edbcc11
commit
6110610f5e
@@ -21,9 +21,10 @@
|
||||
#ifndef WMSUPERFLUOUS_H
|
||||
#define WMSUPERFLUOUS_H
|
||||
|
||||
#define PIECES ((64/ICON_KABOOM_PIECE_SIZE)*(64/ICON_KABOOM_PIECE_SIZE))
|
||||
#include "dock.h"
|
||||
|
||||
extern void DoKaboom(WScreen *scr, Window win, int x, int y);
|
||||
extern Pixmap MakeGhostDock(WDock *dock, int sx, int dx, int y);
|
||||
extern Pixmap MakeGhostIcon(WScreen *scr, Drawable drawable);
|
||||
#endif /* WMSUPERFLUOUS_H */
|
||||
void DoKaboom(WScreen *scr, Window win, int x, int y);
|
||||
Pixmap MakeGhostDock(WDock *dock, int sx, int dx, int y);
|
||||
Pixmap MakeGhostIcon(WScreen *scr, Drawable drawable);
|
||||
void DoWindowBirth(WWindow *wwin);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user