mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
app/headless: remove unusued parameters to newContext
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -31,7 +31,7 @@ type backend interface {
|
||||
|
||||
// NewWindow creates a new headless window.
|
||||
func NewWindow(width, height int) (*Window, error) {
|
||||
ctx, err := newContext(width, height)
|
||||
ctx, err := newContext()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
package headless
|
||||
|
||||
func newContext(width, height int) (backend, error) {
|
||||
func newContext() (backend, error) {
|
||||
return newGLContext()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user