internal/ui: bug fix: compile error on the testing CI

This commit is contained in:
Hajime Hoshi 2023-01-01 18:01:14 +09:00
parent bba32bc06e
commit 7018318546
2 changed files with 5 additions and 2 deletions

View File

@ -20,6 +20,9 @@ package ui
// #cgo darwin LDFLAGS: -Wl,-undefined,dynamic_lookup // #cgo darwin LDFLAGS: -Wl,-undefined,dynamic_lookup
// //
// #include "input_nintendosdk.h" // #include "input_nintendosdk.h"
//
// const int kScreenWidth = 1920;
// const int kScreenHeight = 1080;
import "C" import "C"
func (u *userInterfaceImpl) updateInputState() { func (u *userInterfaceImpl) updateInputState() {

View File

@ -20,8 +20,8 @@ struct Touch {
int y; int y;
}; };
const int kScreenWidth = 1920; extern const int kScreenWidth;
const int kScreenHeight = 1080; extern const int kScreenHeight;
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {