Overview
Comment: | Start to implement loading dependent pictures (the file format isn't implemented yet, nor even defined yet, nor does the picture editor support this yet). |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
e17ab8c4ed8f848b91ecde9e1e87fce3 |
User & Date: | user on 2021-04-11 04:56:34 |
Other Links: | manifest | tags |
Context
2021-04-11
| ||
17:12 | Add another item into TODO list check-in: 52cb71156f user: user tags: trunk | |
04:56 | Start to implement loading dependent pictures (the file format isn't implemented yet, nor even defined yet, nor does the picture editor support this yet). check-in: e17ab8c4ed user: user tags: trunk | |
01:11 | Add "min", "max", "eq2", "Coloc", and "Target" instructions. check-in: aa4fea4bb5 user: user tags: trunk | |
Changes
Modified main.c from [9136db6a90] to [9dbf73c467].
︙ | |||
33 34 35 36 37 38 39 | 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | - + | static const char schema[]= "BEGIN;" "PRAGMA APPLICATION_ID(1296388936);" "PRAGMA RECURSIVE_TRIGGERS(1);" "CREATE TABLE IF NOT EXISTS `USERCACHEINDEX`(`ID` INTEGER PRIMARY KEY, `NAME` TEXT, `TIME` INT);" "CREATE TABLE IF NOT EXISTS `USERCACHEDATA`(`ID` INTEGER PRIMARY KEY, `FILE` INT, `LEVEL` INT, `NAME` TEXT COLLATE NOCASE, `OFFSET` INT, `DATA` BLOB, `USERSTATE` BLOB);" "CREATE UNIQUE INDEX IF NOT EXISTS `USERCACHEDATA_I1` ON `USERCACHEDATA`(`FILE`, `LEVEL`);" |
︙ |
Modified picture.c from [612e3375bc] to [32631e0ed2].
︙ | |||
389 390 391 392 393 394 395 396 397 398 399 400 401 402 | 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 | + + + + | if(meth&2) i=size-i-1; } pix+=pitch-picture_size; } } SDL_UnlockSurface(picts); } static void load_dependent_picture(FILE*fp,Uint16 img,int alt) { //TODO } void load_pictures(void) { sqlite3_stmt*st=0; FILE*fp; Uint8 wantsize[32]; Uint8 nwantsize=0; Uint8 altImage; |
︙ | |||
419 420 421 422 423 424 425 | 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 | - + - - + + + | sscanf(v," %d %n",&i,&j); if(!j) break; if(i<2 || i>255) fatal("Invalid picture size %d\n",i); wantsize[nwantsize++]=i; v+=j; } if(n=sqlite3_exec(userdb,"BEGIN;",0,0,0)) fatal("SQL error (%d): %s\n",n,sqlite3_errmsg(userdb)); |
︙ | |||
471 472 473 474 475 476 477 | 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 | - + - + + + + + + + + + + + + + + + | for(i=255;i;--i) if(havesize[i]) { curpic=malloc(i*i); break; } if(!curpic) fatal("Allocation failed\n"); picture_size=decide_picture_size(nwantsize,wantsize,havesize,n); if(main_options['x']) goto done; |
︙ |
Modified sql.doc from [fa10274d55] to [8a70d5bf69].
︙ | |||
119 120 121 122 123 124 125 | 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | - + | must be numbers, classes, messages, or strings. Once an object is created, you cannot change its class; you must delete it and then add a new object of the correct class. DENSITY is read-only, but you can use ORDER BY DENSITY to sort in the stacking order of the objects. UP and DOWN are also read-only. CREATE TEMPORARY TABLE "PICTURES"("ID" INTEGER PRIMARY KEY, "NAME" TEXT |
︙ |