version 1.1 | | version 1.2 |
---|
| | |
op; | | op; |
i++, op = op->above); | | i++, op = op->above); |
if (i > 0) { | | if (i > 0) { |
int diff = self->crEdit.fontSize - FONTSIZE; | | int diff = self->crEdit.fontSize - FontSize; |
int depth = diff / STACK_MIN + 1; | | int depth = diff / STACK_MIN + 1; |
float dist = 0; | | float dist = 0; |
| | |
| | |
} | | } |
XDrawRectangle (XtDisplay(w), | | XDrawRectangle (XtDisplay(w), |
XtWindow(w), self->crEdit.gc, | | XtWindow(w), self->crEdit.gc, |
(int) xb, (int) yb, FONTSIZE -1, FONTSIZE -1); | | (int) xb, (int) yb, FontSize -1, FontSize -1); |
xb -= dist; | | xb -= dist; |
yb -= dist; | | yb -= dist; |
op = op->above; | | op = op->above; |
| | |
} | | } |
} else { /* Normal map drawing routine */ | | } else { /* Normal map drawing routine */ |
New_Face f; | | New_Face f; |
if (displaymode==Dm_Pixmap) { | | if (displaymode==Dm_Pixmap || displaymode==Dm_Png) { |
f = *(get_map_floor (self->crEdit.map, x, y)->face); | | f = *(get_map_floor (self->crEdit.map, x, y)->face); |
FaceDraw (w, self->crEdit.gc, &f, | | FaceDraw (w, self->crEdit.gc, &f, |
x * self->crEdit.fontSize, | | x * self->crEdit.fontSize, |
| | |
f.fg = f.bg; | | f.fg = f.bg; |
f.bg = tmp; | | f.bg = tmp; |
} | | } |
if (displaymode!=Dm_Pixmap || f.number != blank_face->number) | | if (displaymode!=Dm_Pixmap || displaymode==Dm_Png || |
| | f.number != blank_face->number) |
FaceDraw (w, self->crEdit.gc, &f, | | FaceDraw (w, self->crEdit.gc, &f, |
x * self->crEdit.fontSize, | | x * self->crEdit.fontSize, |
y * self->crEdit.fontSize); | | y * self->crEdit.fontSize); |
| | |
i++, op = op->above); | | i++, op = op->above); |
| | |
if (i > 0) { | | if (i > 0) { |
int diff = self->crEdit.fontSize - FONTSIZE; | | int diff = self->crEdit.fontSize - FontSize; |
int depth = diff / STACK_MIN; | | int depth = diff / STACK_MIN; |
float dist = 0; | | float dist = 0; |
| | |
| | |
| | |
/*** allocate gc ***/ | | /*** allocate gc ***/ |
self->crEdit.gc = GCCreate (new); | | self->crEdit.gc = GCCreate (new); |
self->crEdit.fontSize = FONTSIZE; | | self->crEdit.fontSize = FontSize; |
SetSize(new); | | SetSize(new); |
BorderOff(new); | | BorderOff(new); |
} | | } |
| | |
| | |
/*** stacking change ***/ | | /*** stacking change ***/ |
if(self->crEdit.stacking != old->crEdit.stacking) { | | if(self->crEdit.stacking != old->crEdit.stacking) { |
self->crEdit.fontSize = FONTSIZE + self->crEdit.stacking; | | self->crEdit.fontSize = FontSize + self->crEdit.stacking; |
SetSize(new); | | SetSize(new); |
redpy = True; | | redpy = True; |
} | | } |