Overview
Comment: | Use 23-bit code page numbers. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
0ced76ece74a40767f1414cd7e9eac16 |
User & Date: | user on 2022-01-12 02:28:26 |
Other Links: | manifest | tags |
Context
2022-01-13
| ||
06:48 | Implement cryptographic hash algorithms. (These are not currently used by Free Hero Mesh but is expected to be used in future.) check-in: 1293433867 user: user tags: trunk | |
2022-01-12
| ||
02:28 | Use 23-bit code page numbers. check-in: 0ced76ece7 user: user tags: trunk | |
2022-01-08
| ||
06:06 | Flush output in SQL command line mode. check-in: 70ae21443d user: user tags: trunk | |
Changes
Modified class.c from [7243e8c48b] to [cfa005344c].
︙ | |||
2551 2552 2553 2554 2555 2556 2557 | 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 | - + | case OP_MISC4: define_user_flags(0x1000,0x101F); break; case OP_MISC5: define_user_flags(0x1020,0x103F); break; case OP_MISC6: define_user_flags(0x1040,0x105F); break; case OP_MISC7: define_user_flags(0x1060,0x107F); break; case OP_COLLISIONLAYERS: define_user_flags(0x1080,0x1087); break; case OP_CODEPAGE: nxttok(); |
︙ |
Modified class.doc from [19bc4a72c6] to [d18040badb].
︙ | |||
264 265 266 267 268 269 270 | 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 | - + | (Background <number> [<number>]) Set the background colour, from 0 to 255. The default value is 1. You can optionally specify a second number, which is the background colour for the inventory; if not specified, uses the same colour for both. (CodePage <number>) |
︙ |
Modified codepage.doc from [1ddaf3a23f] to [9ad890221b].
1 2 3 4 5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | - - + + - - - - + - - - - - - - - - + - - - - - - - | === Code page numbers === Code page numbers are assigned according to the following: |
︙ |
Modified heromesh.h from [641a517ed3] to [0675ee5ddc].
︙ | |||
94 95 96 97 98 99 100 101 102 103 104 | 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | + - + | #define read_userstate(a,b,c) read_lump_or_userstate(a,b,c,1) // == picture == extern SDL_Surface*screen; extern Uint16 picture_size; extern int left_margin; extern Uint32 codepage; void init_palette(void); void init_screen(void); void load_pictures(void); |
︙ |
Modified picture.c from [74bc65b7f7] to [f61adccb5b].
︙ | |||
20 21 22 23 24 25 26 27 28 29 30 31 32 33 | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | + | #include "heromesh.h" #include "cursorshapes.h" #include "keyicons.xbm" SDL_Surface*screen; Uint16 picture_size; int left_margin; Uint32 codepage; static SDL_Surface*picts; static Uint8*curpic; static const unsigned char*fontdata; static const char default_palette[]= "C020FF " |
︙ | |||
813 814 815 816 817 818 819 | 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 | - + | SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY,SDL_DEFAULT_REPEAT_INTERVAL); } SDL_EnableUNICODE(1); optionquery[1]=Q_margin; left_margin=strtol(xrm_get_resource(resourcedb,optionquery,optionquery,2)?:"65",0,10); } |
︙ | |||
849 850 851 852 853 854 855 | 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 | - + | goto done; } if(!c) break; if(!s) { if(c<'0' || c>'9') s=1; else if(c=='0' && !i) s=1; else i=10*i+c-'0'; |
︙ | |||
885 886 887 888 889 890 891 892 893 894 895 896 897 898 | 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 | + | i=fgetc(fp)<<16; i|=fgetc(fp)<<24; i|=fgetc(fp)<<0; i|=fgetc(fp)<<8; fseek(fp,i,SEEK_CUR); goto name; done: codepage=n; fclose(fp); } // Widgets static void draw_scrollbar(int*cur,int page,int max,int x0,int y0,int x1,int y1) { Uint8*pix=screen->pixels; |
︙ |