Differences From Artifact [ff76ebbf80]:
- File picture.c — part of check-in [0a234d4210] at 2022-09-14 23:14:25 on branch trunk — Do not hard code number of pictures per row in the internal representation; use macros instead. This number is increased from 16 to 128 in order to avoid coordinate overflows for puzzle sets with large number of pictures if a large picture size is selected. (user: user, size: 39613) [annotate] [blame] [check-ins using]
To Artifact [3dfb2527a6]:
- File picture.c — part of check-in [091fa5cd59] at 2022-12-07 07:16:47 on branch trunk — Implement CONFIG_FUNCTION_ASK_TEXT (full code page capability is not implemented in this function; this may be fixed in future) (user: user, size: 39711) [annotate] [blame] [check-ins using]
︙ | |||
250 251 252 253 254 255 256 257 258 259 260 261 262 263 | 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 | + + + | for(xx=0;xx<8;xx++) p[xx+8]=(*f>>xx)&1?fg:bg; p+=pitch; ++f; } } const char*screen_prompt(const char*txt) { #ifdef CONFIG_FUNCTION_ASK_TEXT return CONFIG_FUNCTION_ASK_TEXT(screen,txt,367,0); #else static char*t=0; int n=0; SDL_Rect r={0,0,screen->w,16}; int m=r.w>>3; SDL_Event ev; if(!t) { t=malloc(m+2); |
︙ | |||
338 339 340 341 342 343 344 345 346 347 348 349 350 351 | 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 | + | break; case SDL_MOUSEBUTTONDOWN: if(ev.button.button==2) goto paste; break; } } return 0; #endif } int screen_message(const char*txt) { int n=0; SDL_Rect r={0,0,0,16}; SDL_Event ev; if(!screen) { |
︙ |