From 76ad9cf42b3cb9addd62c524be10d994183e1ee5 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 3 May 2017 00:10:23 +0900 Subject: [PATCH] doc: Fix comments --- graphics.go | 2 +- internal/restorable/image.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/graphics.go b/graphics.go index 117edfa94..1838f48c1 100644 --- a/graphics.go +++ b/graphics.go @@ -44,7 +44,7 @@ type CompositeMode int // This name convention follows CSS compositing: https://drafts.fxtf.org/compositing-2/. // -// In the above comments, +// In the comments, // c_src, c_dst and c_out represent alpha-premultiplied RGB values of source, destination and output respectively. α_src and α_dst represent alpha values of source and destination respectively. const ( // Regular alpha blending diff --git a/internal/restorable/image.go b/internal/restorable/image.go index 4eafa1df0..b80b44acc 100644 --- a/internal/restorable/image.go +++ b/internal/restorable/image.go @@ -202,7 +202,7 @@ func (p *Image) HasDependency() bool { return p.drawImageHistory != nil } -// RestoreImage restores *graphics.Image from the pixels using its state. +// Restore restores *graphics.Image from the pixels using its state. func (p *Image) Restore(context *opengl.Context) error { w, h := p.image.Size() if p.screen {