Skip to content

Commit c7d0ed4

Browse files
xaionaro@dx.centerxaionaro@dx.center
authored andcommitted
go fmt
1 parent 3219736 commit c7d0ed4

8 files changed

Lines changed: 13 additions & 17 deletions

File tree

examples/audio/basic-playback/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import (
1818
func main() {
1919
const (
2020
sampleRate = 44100
21-
channelCount = 2 // stereo
22-
durationSec = 2 // seconds of silence to write
21+
channelCount = 2 // stereo
22+
durationSec = 2 // seconds of silence to write
2323
writeTimeout = time.Second
2424
)
2525

examples/gles2/framebuffer/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525
"github.com/xaionaro-go/ndk/gles2"
2626
)
2727

28-
2928
func fatal(msg string) {
3029
fmt.Fprintf(os.Stderr, "fatal: %s (EGL error 0x%04X)\n", msg, egl.GetError())
3130
os.Exit(1)

examples/gles2/texture/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
"github.com/xaionaro-go/ndk/gles2"
2222
)
2323

24-
2524
func fatal(msg string) {
2625
fmt.Fprintf(os.Stderr, "fatal: %s (EGL error 0x%04X)\n", msg, egl.GetError())
2726
os.Exit(1)

examples/gles3/sync-fences/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222
"github.com/xaionaro-go/ndk/gles3"
2323
)
2424

25-
2625
var triVertices = [...]float32{
2726
0.0, 0.5,
2827
-0.5, -0.5,

examples/gles3/transform-feedback/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
"github.com/xaionaro-go/ndk/gles3"
2424
)
2525

26-
2726
// Input positions: three 2D points.
2827
var inputPositions = [...]float32{
2928
1.0, 2.0,

examples/sensor/event-loop/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
// a documented pattern rather than executable code.
88
//
99
// The executable portion of this example:
10-
// 1. Gets the sensor manager singleton.
11-
// 2. Queries the default accelerometer and prints its properties.
12-
// 3. Enumerates common sensor types, checking availability on the device.
10+
// 1. Gets the sensor manager singleton.
11+
// 2. Queries the default accelerometer and prints its properties.
12+
// 3. Enumerates common sensor types, checking availability on the device.
1313
//
1414
// This program must run on an Android device.
1515
package main

examples/window/software-render/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
//
4444
// Pixel formats:
4545
//
46-
// Rgba8888 -- 4 bytes/pixel: [R, G, B, A]
47-
// Rgbx8888 -- 4 bytes/pixel: [R, G, B, x] (alpha ignored)
48-
// Rgb565 -- 2 bytes/pixel: 5 red, 6 green, 5 blue bits
46+
// Rgba8888 -- 4 bytes/pixel: [R, G, B, A]
47+
// Rgbx8888 -- 4 bytes/pixel: [R, G, B, x] (alpha ignored)
48+
// Rgb565 -- 2 bytes/pixel: 5 red, 6 green, 5 blue bits
4949
//
5050
// Prerequisites:
5151
// - Android device with a running Activity that provides a native window.

gameactivity/callbacks.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ type Callbacks struct {
6565
OnTrimMemory func(activity *Activity, level int)
6666
OnWindowFocusChanged func(activity *Activity, hasFocus bool)
6767

68-
OnNativeWindowCreated func(activity *Activity, window unsafe.Pointer)
69-
OnNativeWindowDestroyed func(activity *Activity, window unsafe.Pointer)
70-
OnNativeWindowResized func(activity *Activity, window unsafe.Pointer, width, height int32)
68+
OnNativeWindowCreated func(activity *Activity, window unsafe.Pointer)
69+
OnNativeWindowDestroyed func(activity *Activity, window unsafe.Pointer)
70+
OnNativeWindowResized func(activity *Activity, window unsafe.Pointer, width, height int32)
7171
OnNativeWindowRedrawNeeded func(activity *Activity, window unsafe.Pointer)
72-
OnWindowInsetsChanged func(activity *Activity)
72+
OnWindowInsetsChanged func(activity *Activity)
7373

7474
OnTouchEvent func(activity *Activity, event MotionEvent) bool
7575
OnKeyDown func(activity *Activity, event KeyEvent) bool
@@ -78,7 +78,7 @@ type Callbacks struct {
7878
}
7979

8080
var (
81-
callbacksMu sync.Mutex
81+
callbacksMu sync.Mutex
8282
registeredCallbacks *Callbacks
8383
)
8484

0 commit comments

Comments
 (0)