Skip to content

Commit

Permalink
gvl: Fix brokeness in getWidth() and getHeight()
Browse files Browse the repository at this point in the history
  • Loading branch information
andoma committed Aug 16, 2012
1 parent 28488a9 commit 346ff19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/glw/glw_view_eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -4633,7 +4633,7 @@ glwf_getWidth(glw_view_eval_context_t *ec, struct token *self,

ec->dynamic_eval |= GLW_VIEW_DYNAMIC_EVAL_EVERY_FRAME;

if(w->glw_flags & GLW_CONSTRAINT_X) {
if(w->glw_flags & GLW_CONSTRAINT_CONF_X) {
r = eval_alloc(self, ec, TOKEN_INT);
r->t_int = w->glw_req_size_x;
} else if(ec->rc == NULL) {
Expand All @@ -4659,7 +4659,7 @@ glwf_getHeight(glw_view_eval_context_t *ec, struct token *self,

ec->dynamic_eval |= GLW_VIEW_DYNAMIC_EVAL_EVERY_FRAME;

if(w->glw_flags & GLW_CONSTRAINT_X) {
if(w->glw_flags & GLW_CONSTRAINT_CONF_Y) {
r = eval_alloc(self, ec, TOKEN_INT);
r->t_int = w->glw_req_size_y;
} else if(ec->rc == NULL) {
Expand Down

0 comments on commit 346ff19

Please sign in to comment.