removed logs
This commit is contained in:
parent
85dbadcaff
commit
f72c9e7aa3
@ -1,7 +1,6 @@
|
|||||||
package buf2d
|
package buf2d
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -96,8 +95,6 @@ func (b *Buffer) Sub(x, y, w, h int) *Buffer {
|
|||||||
data[dy] = col[x : x+w]
|
data[dy] = col[x : x+w]
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println(data)
|
|
||||||
|
|
||||||
// make buffer
|
// make buffer
|
||||||
return &Buffer{
|
return &Buffer{
|
||||||
data: data,
|
data: data,
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
package buf2d
|
package buf2d
|
||||||
|
|
||||||
import "fmt"
|
|
||||||
|
|
||||||
// WriteString writes a whole string to the buffer at position (x,y)
|
// WriteString writes a whole string to the buffer at position (x,y)
|
||||||
// no word wrap is applied at all. If the string does not fit, it will be truncated
|
// no word wrap is applied at all. If the string does not fit, it will be truncated
|
||||||
func (b *Buffer) WriteString(str string, x, y int) {
|
func (b *Buffer) WriteString(str string, x, y int) {
|
||||||
@ -9,7 +7,6 @@ func (b *Buffer) WriteString(str string, x, y int) {
|
|||||||
if x+dx >= b.width {
|
if x+dx >= b.width {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
fmt.Println(x+dx, y, string(r))
|
|
||||||
b.Set(x+dx, y, r)
|
b.Set(x+dx, y, r)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user