mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-01-10 15:42:16 +01:00
Update
This commit is contained in:
parent
a82cd18d9a
commit
bc2f640a95
2 changed files with 2 additions and 6 deletions
|
@ -35,7 +35,7 @@ func TestReleaseLoadRepo(t *testing.T) {
|
||||||
|
|
||||||
require.NoError(t, release.LoadRepo(db.DefaultContext))
|
require.NoError(t, release.LoadRepo(db.DefaultContext))
|
||||||
|
|
||||||
assert.Equal(t, int64(1), release.Repo.ID)
|
assert.EqualValues(t, 1, release.Repo.ID)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestReleaseDisplayName(t *testing.T) {
|
func TestReleaseDisplayName(t *testing.T) {
|
||||||
|
|
|
@ -339,9 +339,5 @@ func (c *Card) DrawExternalImage(url string) {
|
||||||
|
|
||||||
// DrawRect draws a rect with the given color
|
// DrawRect draws a rect with the given color
|
||||||
func (c *Card) DrawRect(startX, startY, endX, endY int, color color.Color) {
|
func (c *Card) DrawRect(startX, startY, endX, endY int, color color.Color) {
|
||||||
for x := startX; x <= endX; x++ {
|
draw.Draw(c.Img, image.Rect(startX, startY, endX, endY), &image.Uniform{color}, image.Point{}, draw.Src)
|
||||||
for y := startY; y <= endY; y++ {
|
|
||||||
c.Img.Set(x, y, color)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue