app: add iPad Mini 3, and a fallback PPI

Change-Id: I46cde56fe7f9a13de71bbb8c80b81cd273dd020f
Reviewed-on: https://go-review.googlesource.com/10540
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
David Crawshaw 2015-05-29 14:59:01 -04:00
parent 6391ccb644
commit d2248246f7
1 changed files with 4 additions and 1 deletions

View File

@ -86,6 +86,8 @@ var machinePPI = map[string]int{
"iPad4,3": 264, // iPad Air LTE China
"iPad4,4": 326, // iPad Mini gen2 wifi
"iPad4,5": 326, // iPad Mini gen2 LTE
"iPad4,6": 326, // iPad Mini 3
"iPad4,7": 326, // iPad Mini 3
"iPhone3,1": 326, // iPhone 4
"iPhone4,1": 326, // iPhone 4S
"iPhone5,1": 326, // iPhone 5
@ -103,7 +105,8 @@ func ppi() int {
name := C.GoString(&C.sysInfo.machine[0])
v, ok := machinePPI[name]
if !ok {
log.Fatalf("unknown machine: %s", name)
log.Printf("unknown machine: %s", name)
v = 163 // emergency fallback
}
return v
}