This commit is contained in:
JakobDev 2024-12-30 17:47:34 +01:00
parent a82cd18d9a
commit bc2f640a95
No known key found for this signature in database
GPG key ID: 39DEF62C3ED6DC4C
2 changed files with 2 additions and 6 deletions

View file

@ -35,7 +35,7 @@ func TestReleaseLoadRepo(t *testing.T) {
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) {

View file

@ -339,9 +339,5 @@ func (c *Card) DrawExternalImage(url string) {
// DrawRect draws a rect with the given color
func (c *Card) DrawRect(startX, startY, endX, endY int, color color.Color) {
for x := startX; x <= endX; x++ {
for y := startY; y <= endY; y++ {
c.Img.Set(x, y, color)
}
}
draw.Draw(c.Img, image.Rect(startX, startY, endX, endY), &image.Uniform{color}, image.Point{}, draw.Src)
}