about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-01-16 10:23:57 -0800
committerKartik K. Agaram <vc@akkartik.com>2023-01-16 10:23:57 -0800
commit85b24c81c9dbc7feac083bcb72269b272d052a68 (patch)
tree57c5752c0c42323f9e18269415f0fea081b2ed15
parent5c0323bdbd83b16af8042491e8e38ca10bbf0bd0 (diff)
parent44fbb51161b425540a4d5ef5a3c87df0c73a4e6f (diff)
downloadview.love-85b24c81c9dbc7feac083bcb72269b272d052a68.tar.gz
Merge text.love
-rw-r--r--main.lua6
-rw-r--r--run.lua5
-rw-r--r--source.lua5
3 files changed, 6 insertions, 10 deletions
diff --git a/main.lua b/main.lua
index b6d1a5d..5e434c6 100644
--- a/main.lua
+++ b/main.lua
@@ -84,6 +84,12 @@ function App.initialize_globals()
 end
 
 function App.initialize(arg)
+  love.window.setVSync(0)  -- simplify profiling; we're not a game
+  love.keyboard.setTextInput(true)  -- bring up keyboard on touch screen
+  love.keyboard.setKeyRepeat(true)
+
+  love.graphics.setBackgroundColor(1,1,1)
+
   if Current_app == 'run' then
     run.initialize(arg)
   elseif Current_app == 'source' then
diff --git a/run.lua b/run.lua
index 2ada1ba..5806cae 100644
--- a/run.lua
+++ b/run.lua
@@ -16,11 +16,6 @@ end
 -- called only for real run
 function run.initialize(arg)
   log_new('run')
-  love.keyboard.setTextInput(true)  -- bring up keyboard on touch screen
-  love.keyboard.setKeyRepeat(true)
-
-  love.graphics.setBackgroundColor(1,1,1)
-
   if Settings then
     run.load_settings()
   else
diff --git a/source.lua b/source.lua
index 3ad4b12..3501185 100644
--- a/source.lua
+++ b/source.lua
@@ -61,11 +61,6 @@ end
 -- called only for real run
 function source.initialize()
   log_new('source')
-  love.keyboard.setTextInput(true)  -- bring up keyboard on touch screen
-  love.keyboard.setKeyRepeat(true)
-
-  love.graphics.setBackgroundColor(1,1,1)
-
   if Settings and Settings.source then
     source.load_settings()
   else
210'>210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385