Skip to content

Commit

Permalink
Speed tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
KeithDHedger committed Sep 23, 2018
1 parent 6d7b63f commit a3f85bc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
0.1.10
Speed tweaks.
Added extra halloeen falling images.
Clear window/bottom snow on config change.
Code clean.
Bad window bug fix.
Expand Down
1 change: 1 addition & 0 deletions XDecorations/src/draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ void drawFalling(void)
XSetClipMask(display,gc,*(moving[j].object->mask[moving[j].imageNum]));
XSetClipOrigin(display,gc,moving[j].x,moving[j].y);
XCopyArea(display,*(moving[j].object->pixmap[moving[j].imageNum]),drawOnThis,gc,0,0,moving[j].object->w[0],moving[j].object->h[0],moving[j].x,moving[j].y);

moving[j].countDown--;
if(moving[j].countDown==0)
{
Expand Down
18 changes: 9 additions & 9 deletions XDecorations/src/xdecorations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,15 +437,15 @@ void setDefaults(void)

void reloadConfig(void)
{
int numflyobjects;
int flysetnumber=flyerNumber;
int numfallobjects=numberOfFalling;
int fallsetnumber=fallingNumber;
int tmptree=treeNumber;
int tmptreelampset=treeLampSet;
int tmpfig=figureNumber;
int tmplamps=lampSet;
char* tmptheme;
int numflyobjects;
int flysetnumber=flyerNumber;
int numfallobjects=numberOfFalling;
int fallsetnumber=fallingNumber;
int tmptree=treeNumber;
int tmptreelampset=treeLampSet;
int tmpfig=figureNumber;
int tmplamps=lampSet;
char *tmptheme;
bool force=false;
bool changed=false;

Expand Down

0 comments on commit a3f85bc

Please sign in to comment.