Commit Graph

  • 7419b509dc SDL docs (not finished) and HISTORY update. William McBrine 2007-07-09 04:26:25 +00:00
  • 83e1e10da2 RXPACKEXPORTS is used only in AIX. William McBrine 2007-07-09 02:24:58 +00:00
  • 8128c5fa9e Transparentized newdemo -- just the area outside the box. This illustrates the simplest way to use use_default_colors(). William McBrine 2007-07-07 17:12:18 +00:00
  • 727faab786 Or if we have an event? William McBrine 2007-07-07 14:54:02 +00:00
  • 565eea4b95 Call PDC_update_rects() every 30 ms from PDC_check_key(). This takes care of the nodelay() case, as long as the keyboard is still being checked. William McBrine 2007-07-07 14:48:37 +00:00
  • e1d1366770 Added PDC_LINES and PDC_COLS. I'm not using LINES and COLS here, as in other ports, because those values are meant to apply to the controlling terminal, and this port is separate from any terminal. But I may have to think about it. William McBrine 2007-07-07 06:51:31 +00:00
  • 7c3c65e86f Add support for the environment variables PDC_FONT, PDC_ICON, and PDC_BACKGROUND. This is better than relying on files with a given name in a given directory, but those are still used as fallbacks. William McBrine 2007-07-07 06:23:18 +00:00
  • 9d8a0a7a95 Comments. William McBrine 2007-07-07 05:18:00 +00:00
  • 2ef2b4a502 The palette now needs to be reset this way after being changed for underlining. William McBrine 2007-07-07 05:17:38 +00:00
  • 6bc71a3587 Comments. I probably should add a lot more. William McBrine 2007-07-06 17:26:17 +00:00
  • 165847d0b3 Expose _retile() as PDC_retile(). This allows updating pdc_tileback to match pdc_screen after initscr(). William McBrine 2007-07-06 02:23:20 +00:00
  • adf273d7e0 Added background image support for SDL. This uses a "color" of -1 to represent a transparent background, accessed via use_default_colors(), as with ncurses. The background image is defined by adding a file called "pdcback.bmp", or by setting the SDL_Surface *pdc_back before initscr(). The image is tiled. Alternatively, if pdc_screen is set before initscr(), but pdc_back is not, then the contents of pdc_screen at the time of initscr() are used. (Note that the contents are not updated if pdc_screen is altered later by SDL functions.) William McBrine 2007-07-05 23:37:45 +00:00
  • 377191488c Restored the use_default_colors() stuff from the ncurses versions of rain and worm, preparatory to... William McBrine 2007-07-05 23:30:17 +00:00
  • c6d22033a7 Go directly to PDC_pair_content(). William McBrine 2007-07-05 20:57:55 +00:00
  • f7324dfb4e Allow the use of unpaletted BMPs for the font -- treat them as mono. (In fact, they have no attributes at all, nor is the cursor ever visible.) William McBrine 2007-07-05 01:21:03 +00:00
  • ea0d0ea724 tuidemo didn't work correctly on monochrome screens when A_COLOR was defined -- the color pair numbers appeared as the corresponding character. William McBrine 2007-07-05 01:18:43 +00:00
  • d15d647f41 Bogus references to ACS_BLCORNER. Reported by "Walrii". William McBrine 2007-07-04 22:24:17 +00:00
  • 9c1dade0a2 Simpler atrtab. William McBrine 2007-07-03 18:39:28 +00:00
  • 97b814f274 This too. William McBrine 2007-07-03 17:40:15 +00:00
  • 398f14d60f Separate the real (screen) colors from the curses color definitions, as they already were separated in X11 and SDL. Now it's possible to use the PDC_RGB colors (or indeed, any other definitions for COLOR_*) even with DOS/OS2/Win32. William McBrine 2007-07-03 01:51:45 +00:00
  • 5def5d5771 Moved the cores of pair_content() and init_pair(), and everything related to pdc_atrtab, to platform directories. This was arguably the last area of code in the pdcurses directory that embodied platform- specific knowledge. It does result in some duplicated code, but allows a much cleaner setup for the platforms that don't directly use PC-style attributes (currently X11 and SDL). William McBrine 2007-07-03 00:11:47 +00:00
  • 0fd325704e Obsolete reference to latin-1.man. William McBrine 2007-07-02 02:53:45 +00:00
  • dae92b4e20 They're not really dragons. William McBrine 2007-06-30 06:45:10 +00:00
  • 54f610bae0 Merged latin-1.txt into x11.txt, where it really belongs. William McBrine 2007-06-30 06:35:35 +00:00
  • 734c3dfe53 Tweaks. William McBrine 2007-06-30 06:19:59 +00:00
  • 63d53db58c Use setlocale() in tuidemo -- makes it easier to browse files with non-ASCII characters. William McBrine 2007-06-30 00:29:32 +00:00
  • db961bf839 Assume everyone has curs_set() -- there's no good test for this, and the existing tests are bogus. William McBrine 2007-06-29 21:40:07 +00:00
  • 5f58235cbd Turn the cursor off again after input. William McBrine 2007-06-29 21:04:52 +00:00
  • be54bb3dd9 Keep the clock going, and ensure that cursor keys work. William McBrine 2007-06-29 20:51:39 +00:00
  • 62d3b0b057 The input box in tuidemo was (I now realize) broken with ncurses since our 2.7, and broke more subtly with PDCurses' new implicit refresh handling. William McBrine 2007-06-29 20:41:03 +00:00
  • ccf3e90e49 A couple more ways to avoid adding a rect. William McBrine 2007-06-29 10:57:28 +00:00
  • c8809d6803 A more sensible version of rect merging -- before, it would stop merging after the first pair. D'oh! William McBrine 2007-06-29 06:54:18 +00:00
  • 5239889cc7 Better descriptions of the includable BMPs, with credits. William McBrine 2007-06-29 04:54:21 +00:00
  • 93af1e4f63 Don't send another KEY_RESIZE if a previous resize hasn't been handled yet. William McBrine 2007-06-28 18:41:46 +00:00
  • 5bdf70b089 Send KEY_RESIZE only when resizing changes the number of lines or columns. William McBrine 2007-06-28 02:25:37 +00:00
  • e94d3e6800 Invert the fonts -- use white on black. More logical and consistent. William McBrine 2007-06-27 07:17:33 +00:00
  • b7039e88a8 Allow font BMPs with greater depths. The essential thing is that the foreground color is the first palette entry, and the background color is the last. (These are the only colors that will be altered by PDCurses; any others will be blitted as-is.) William McBrine 2007-06-27 02:51:09 +00:00
  • eee1ceaa0d Minor reorg; allow exit with 'q'. William McBrine 2007-06-25 15:33:32 +00:00
  • f03c0736f0 Simplified. William McBrine 2007-06-25 14:20:33 +00:00
  • 5a08f8da56 A special demo for SDL, showing how to combine SDL and PDCurses functions. William McBrine 2007-06-25 13:19:47 +00:00
  • 2e79ecf5db Erroneous division by font size. William McBrine 2007-06-25 12:47:13 +00:00
  • 3d50587202 Error in copying this from the narrow version. William McBrine 2007-06-25 07:36:45 +00:00
  • ee21ad6ad0 Real newscr-style double-buffering, for SDL only, Affects only blits. Shaves about 25% off the CPU usage of "worm -n 40". William McBrine 2007-06-24 16:35:33 +00:00
  • b72f73a326 Only these need to be PDCEX. William McBrine 2007-06-24 09:55:36 +00:00
  • 311076ad71 Simplified wscrl(). Possibly still more to do here. William McBrine 2007-06-24 00:50:34 +00:00
  • 23b6f97333 Wrong argument. William McBrine 2007-06-23 23:27:55 +00:00
  • 1dc990f528 errno is used only here. William McBrine 2007-06-23 23:02:12 +00:00
  • 236efdc4ce Don't test for errno.h, because it's ANSI, and because errno is used regardless of the test. William McBrine 2007-06-23 22:59:13 +00:00
  • 1d467efd7e We don't have _tracef(). William McBrine 2007-06-22 23:38:46 +00:00
  • 835ea3042d Make the command-line parameter for ptest work. William McBrine 2007-06-22 10:37:54 +00:00
  • b55bfc0348 The SFLAGS aren't needed for the demos. William McBrine 2007-06-22 10:10:19 +00:00
  • b6eff32e84 A more likely path to the source. William McBrine 2007-06-22 10:09:42 +00:00
  • 553f517f68 Document slk_wlabel(). To Do: The slk functions are poorly described. William McBrine 2007-06-22 10:01:10 +00:00
  • 4805537bc4 Don't need stdlib.h here. William McBrine 2007-06-21 23:23:50 +00:00
  • d4d8fe23a1 Notational change. To Do: pnoutrefresh() needs to be optimized in the same way as wnoutrefresh(). William McBrine 2007-06-21 22:01:12 +00:00
  • 1ddfdc7a27 Standardized. William McBrine 2007-06-21 21:50:48 +00:00
  • b0532600e5 Simplified. William McBrine 2007-06-21 21:50:15 +00:00
  • bc64af58b3 Also check the strings. William McBrine 2007-06-21 09:59:36 +00:00
  • 3487c004ec Simplified. To Do: Test. William McBrine 2007-06-21 09:51:51 +00:00
  • e3d35b7478 Slightly more efficient wscrl(). More to do here. William McBrine 2007-06-21 07:48:25 +00:00
  • 9615809444 Comments. William McBrine 2007-06-21 07:14:58 +00:00
  • da1664f744 Implicit wrefresh() from wgetch() also needs to be called if only the cursor was moved (and not in leaveok() mode). William McBrine 2007-06-21 06:54:50 +00:00
  • ce4236ef78 Already set startpos, might as well use it. William McBrine 2007-06-21 05:41:56 +00:00
  • 1d2712bcac Refashioned wchgat() after whline(). However, as I read the X/Open spec for wchgat(), it's actually supposed to allow changing multiple lines... which neither ncurses nor Solaris do, either. To Do? William McBrine 2007-06-21 05:38:07 +00:00
  • e06edc6a81 Similar changes for whline() and wvline(). William McBrine 2007-06-21 04:51:29 +00:00
  • 02351e0306 Another pointless use of min()/max(). Most of the rest are as well... William McBrine 2007-06-21 02:32:17 +00:00
  • cdd73b4ecc In wnoutrefresh(), leave out the actually-unchanged ends (left and right) for each line (this may come to the whole line). Alleviates the pain of wtouchwin(). This is more noticeable the slower the back end is; SDL really brought it out. But it should be faster in most cases, giving most of the advantages of ncurses' curscr/newscr system (and in a slightly neater way, IMHO). This part of the code hadn't meaningfully changed since Pccurses 1.0. William McBrine 2007-06-21 02:04:06 +00:00
  • 245f4a26db Spacing. William McBrine 2007-06-20 23:03:19 +00:00
  • ef4811a63e Minor updates. William McBrine 2007-06-19 21:12:16 +00:00
  • ca7b90f8eb SDL_Flip() can be faster when there are a large number of rectangles... mostly this will be when rectcount is about to overflow. The existing mechanism is clearly faster in many circumstances, and, I think, in most that will be encountered in real applications. But it's a complex issue. William McBrine 2007-06-19 05:09:27 +00:00
  • 71e71d24ad Export the variables needed for the SDL DLL. Still not sure I want to go this way, vs. a functional interface. William McBrine 2007-06-19 04:28:12 +00:00
  • 2a70369858 Use SDL_LowerBlit()... fine for PDCurses' own purposes, but do we want to preserve the ability for someone to use SDL_ClipRect()? William McBrine 2007-06-19 01:49:02 +00:00
  • fcca560b16 Call the SDL config script only twice. William McBrine 2007-06-19 01:36:15 +00:00
  • fbad514123 My second attempt to kill the bogus autorepeats -- seems to work, although I do still get a missed key sometimes on return from the shell. William McBrine 2007-06-18 09:36:44 +00:00
  • 67728273f3 Some unneeded configure stuff. William McBrine 2007-06-18 02:55:08 +00:00
  • f2ee1b571d Eliminated the copying of pdcurses.def to cygwin.def -- no longer need to edit the makefile manually. Not tested. William McBrine 2007-06-18 02:38:06 +00:00
  • 26dd436897 Don't seem to need the extended repeat delay anymore -- it was a problem because of the instantly-updating cursor. Now the Mac version is actually faster than the Linux one. D'oh! William McBrine 2007-06-18 00:50:10 +00:00
  • 9dbcab53de Tweaks, comments. The cursor update was ignoring the queueing. William McBrine 2007-06-18 00:41:42 +00:00
  • f5c5a459cc Change the palette only when needed, instead of (at least) once per line; use SDL_SetPalette() instead of SDL_SetColors(). William McBrine 2007-06-17 21:15:59 +00:00
  • b528d25d0b Merge update rects that are the same dimensions on subsequent lines -- seems faster, but my testing hasn't been rigorous. William McBrine 2007-06-17 20:37:29 +00:00
  • b68159f49b The pdcurses library was showing up twice on the tuidemo link line. William McBrine 2007-06-17 19:32:04 +00:00
  • f9e9253866 Added pdc_xoffset and pdc_yoffset; allow presetting of pdc_sheight and pdc_swidth. This lets you tell PDCurses to use a subset of a surface (so the rest can be used with other SDL functions). William McBrine 2007-06-17 19:30:42 +00:00
  • cb5d227748 Updated version number. William McBrine 2007-06-17 18:48:54 +00:00
  • ed20eb0e90 Flush input coming and going. I thought this might help with my problem of autorepeating ghost keys in MultiMail when built with MinGW/SDL. It doesn't, but I think it's a good idea anyway. William McBrine 2007-06-17 18:34:14 +00:00
  • 81ee5fd8b9 New version, new platform. William McBrine 2007-06-17 09:28:58 +00:00
  • a77292c221 Minor tweaking. William McBrine 2007-06-17 06:55:52 +00:00
  • ab561073b1 Shortcut. William McBrine 2007-06-17 03:26:17 +00:00
  • a435894604 Support DEBUG and DLL for MinGW/SDL. William McBrine 2007-06-17 03:15:54 +00:00
  • d05eb5f52d Need $(osdir) on pdcurses.def if building the DLL from another directory. William McBrine 2007-06-17 02:58:46 +00:00
  • 05415ad686 A slighter longer key repeat interval works better. William McBrine 2007-06-17 00:12:51 +00:00
  • 0b136d7b3b Simplified makefiles for SDL. Setting GNU make as a baseline... can't do anything useful with POSIX make. :-P William McBrine 2007-06-16 23:01:42 +00:00
  • 4940f47b3f SDLmain is not really needed with MinGW. William McBrine 2007-06-16 17:42:25 +00:00
  • ee2bb56d38 To get around the Mac performance problem (which turns out to be due to a change in the way QDFlushPortBuffer() is handled -- it only updates every 60th of a second, and blocks until then), here's a version that builds a list of SDL_Rects, and calls SDL_UpdateRects() only when the list is full, or from PDC_napms(). Of course it's (even) faster on other platforms, too. However, in the degenerate case where PDC_napms() is never called (no keyboard checks, no intentional pauses), the screen will not be updated. I could get around that, too, but it's much more hairy... William McBrine 2007-06-16 05:16:44 +00:00
  • f6be6a44fd Fix for building SDL demos on Mac OS X. Kinda kludgy, but everything else I could think of seemed worse. William McBrine 2007-06-16 01:12:20 +00:00
  • 3961009551 Use standard main() prototype, for the benefit of SDL. William McBrine 2007-06-16 01:10:34 +00:00
  • aad097500d Scroll wheel for SDL. William McBrine 2007-06-15 21:06:40 +00:00
  • 8aa96d9d45 Removed PDCLIBS. William McBrine 2007-06-15 08:51:55 +00:00
  • 59fab631a0 Resize tweaks -- prevent crashes when sizing downward. William McBrine 2007-06-14 15:58:20 +00:00
  • 55cdf01e92 Comments. William McBrine 2007-06-14 14:43:53 +00:00
  • 65c53f035a Move man page comment blocks to just after the RCSID. William McBrine 2007-06-14 14:11:31 +00:00