more checking rooms
This commit is contained in:
@ -93,7 +93,7 @@ func (layer Layer) Print(x, y int, txt string) (w, h int) {
|
||||
return w, h
|
||||
}
|
||||
|
||||
func (layer Layer) PrintInside(rect *types.Rect, text string, alignment int) (width int, height int) {
|
||||
func (layer Layer) PrintInside(rect types.Rect, text string, alignment int) (width int, height int) {
|
||||
return blt.PrintExt(rect.X + 2, rect.Y + 2, rect.W - 4, rect.H - 4, alignment, text)
|
||||
}
|
||||
|
||||
@ -105,7 +105,7 @@ func (layer *Layer) Decorate(f func(args ...interface{})) func(args ...interface
|
||||
}
|
||||
}
|
||||
|
||||
func (layer *Layer) ClearRect(r *types.Rect) {
|
||||
func (layer *Layer) ClearRect(r types.Rect) {
|
||||
prevLayer := int(blt.State(blt.TK_LAYER))
|
||||
blt.Layer(layer.Idx)
|
||||
blt.ClearArea(r.X, r.Y, r.W, r.H)
|
||||
|
Reference in New Issue
Block a user