Update texture constant
This commit is contained in:
parent
cb8ac8645e
commit
dc0794f762
1 changed files with 4 additions and 4 deletions
|
@ -354,7 +354,7 @@ void Basemenu::update(void) {
|
||||||
if (title_vis) {
|
if (title_vis) {
|
||||||
tmp = menu.title_pixmap;
|
tmp = menu.title_pixmap;
|
||||||
texture = &(screen->getMenuStyle()->title);
|
texture = &(screen->getMenuStyle()->title);
|
||||||
if (texture->getTexture() == (BImage_Flat | BImage_Solid)) {
|
if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) {
|
||||||
menu.title_pixmap = None;
|
menu.title_pixmap = None;
|
||||||
XSetWindowBackground(display, menu.title,
|
XSetWindowBackground(display, menu.title,
|
||||||
texture->getColor()->getPixel());
|
texture->getColor()->getPixel());
|
||||||
|
@ -369,7 +369,7 @@ void Basemenu::update(void) {
|
||||||
|
|
||||||
tmp = menu.frame_pixmap;
|
tmp = menu.frame_pixmap;
|
||||||
texture = &(screen->getMenuStyle()->frame);
|
texture = &(screen->getMenuStyle()->frame);
|
||||||
if (texture->getTexture() == (BImage_Flat | BImage_Solid)) {
|
if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) {
|
||||||
menu.frame_pixmap = None;
|
menu.frame_pixmap = None;
|
||||||
XSetWindowBackground(display, menu.frame,
|
XSetWindowBackground(display, menu.frame,
|
||||||
texture->getColor()->getPixel());
|
texture->getColor()->getPixel());
|
||||||
|
@ -382,7 +382,7 @@ void Basemenu::update(void) {
|
||||||
|
|
||||||
tmp = menu.hilite_pixmap;
|
tmp = menu.hilite_pixmap;
|
||||||
texture = &(screen->getMenuStyle()->hilite);
|
texture = &(screen->getMenuStyle()->hilite);
|
||||||
if (texture->getTexture() == (BImage_Flat | BImage_Solid))
|
if (texture->getTexture() == (BImage::FLAT | BImage::SOLID))
|
||||||
menu.hilite_pixmap = None;
|
menu.hilite_pixmap = None;
|
||||||
else
|
else
|
||||||
menu.hilite_pixmap =
|
menu.hilite_pixmap =
|
||||||
|
@ -390,7 +390,7 @@ void Basemenu::update(void) {
|
||||||
if (tmp) image_ctrl->removeImage(tmp);
|
if (tmp) image_ctrl->removeImage(tmp);
|
||||||
|
|
||||||
tmp = menu.sel_pixmap;
|
tmp = menu.sel_pixmap;
|
||||||
if (texture->getTexture() == (BImage_Flat | BImage_Solid))
|
if (texture->getTexture() == (BImage::FLAT | BImage::SOLID))
|
||||||
menu.sel_pixmap = None;
|
menu.sel_pixmap = None;
|
||||||
else {
|
else {
|
||||||
int hw = menu.item_h / 2;
|
int hw = menu.item_h / 2;
|
||||||
|
|
Loading…
Reference in a new issue