Skip to content

Commit 08e783c

Browse files
Uncomment bg pic for button setting
1 parent 6ab2b99 commit 08e783c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Widgets/Button.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ xButton * pxButtonCreate(uint16_t usX, uint16_t usY, xPicture pusPic, xWidget *p
108108

109109
//TODO: Test this code (should work)
110110
bool bButtonSetPushPic(xButton *pxW, xPicture pusPic) {
111-
//xButtonProps *xP;
111+
xButtonProps *xP;
112112

113113
if (!pxW)
114114
return false;
115115

116-
//xP = pxW->pvProp;
116+
xP = pxW->pvProp;
117117

118-
/*xP->bEmulatePressure = pusPic;
118+
xP->bEmulatePressure = pusPic;
119119
//press picture must be the same size as foreground pic
120120

121121
if(pxDrawHDL()->usGetPictureH(pusPic) != usWidgetGetH(pxW))
@@ -125,7 +125,7 @@ bool bButtonSetPushPic(xButton *pxW, xPicture pusPic) {
125125
return false;
126126

127127
if(pxW->bPressed)
128-
vWidgetInvalidate(pxW);*/
128+
vWidgetInvalidate(pxW);
129129

130130
return true;
131131
}

0 commit comments

Comments
 (0)