CHANGES.txt 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. 0.99.15
  2. - dead key support under Windows and X11 (via XIM)
  3. - more character scripts (Latin 2, Latin 3, Latin 4, Latin 9, Katakana,
  4. Arabic, Greek with diacritics, Technical, Special, Publishing, APL, Hebrew,
  5. Thai, Currency signs - Korean Won sign and Euro sign) are now recognized and
  6. converted to Unicode in the X11 console. Previously only Latin 1, Greek
  7. without diacritics and Cyrillic were supported, but even they didn't work in
  8. recent ptcpas versions, due to regressions, which are now fixed as well.
  9. - use an alternative method (via GetKeyState) for obtaining the Alt, Shift and
  10. Control key modifier status under Windows; This eliminates a problem, where
  11. the alt key appears "stuck", after alt-tabbing away from the application,
  12. then focusing back to it with a mouse click.
  13. - new key modifiers added for distinguishing between left and right shift,
  14. control and alt, the status of num lock, caps lock and scroll lock and for
  15. distinguishing right keys (e.g. right shift, right alt, right ctrl),
  16. numpad keys and dead keys. All of them are implemented as elements in the
  17. ModifierKeys set, which was added to IPTCKeyEvent. They can be checked,
  18. for example, with:
  19. if pmkNumLockActive in key_event.ModifierKeys then
  20. ...
  21. The following modifiers are available:
  22. pmkAlt, pmkShift, pmkControl, pmkLeftAlt, pmkRightAlt, pmkLeftShift,
  23. pmkRightShift, pmkLeftControl, pmkRightControl, pmkNumLockActive,
  24. pmkNumLockPressed, pmkCapsLockActive, pmkCapsLockPressed,
  25. pmkScrollLockActive, pmkScrollLockPressed, pmkRightKey, pmkNumPadKey,
  26. pmkDeadKey
  27. - there is now a MoveMouseTo method, added to the console. It can be used to
  28. warp the mouse cursor to a different location.
  29. - added support for a relative mouse mode. It supports continuous mouse
  30. motion, not limited within the boundaries of the current window. It is
  31. usually used with an invisible cursor. It is activated with the
  32. 'relative mouse on' console option, and turned off with the option
  33. 'relative mouse off'.
  34. - the number of mouse buttons supported has been increased to 31. There is now
  35. support for a horizontal and a vertical mouse wheel, which are treated as
  36. buttons. Overall, this is the default button arrangement:
  37. PTCMouseButton1 - left mouse button
  38. PTCMouseButton2 - right mouse button
  39. PTCMouseButton3 - middle mouse button
  40. PTCMouseButton4 - mouse wheel rotated forward (scroll up)
  41. PTCMouseButton5 - mouse wheel rotated backward (scroll down)
  42. PTCMouseButton6 - mouse horizontal scroll wheel rotated left
  43. PTCMouseButton7 - mouse horizontal scroll wheel rotated right
  44. PTCMouseButton8 - "back" button ("X button 1")
  45. PTCMouseButton9 - "forward" button ("X button 2")
  46. The remaining mouse buttons are hardware specific and will vary, depending
  47. on the actual mouse (provided it has that many buttons at all).
  48. - ptccrt now supports several keyboard input modes, which can be set by
  49. changing the new global variable KeyMode. The following values are supported:
  50. kmTP7 - behaves like Turbo Pascal 7's CRT unit under DOS. This is the
  51. default value. Previous versions of ptccrt always behaved this
  52. way. Since TP7's CRT unit doesn't support the Enhanced
  53. Keyboard, several keys (e.g. F11 and F12) and key combinations
  54. are intentionally not recognized for compatibility reasons.
  55. kmGO32 - behaves like Free Pascal's CRT unit under DOS (GO32V2). It has
  56. Enhanced Keyboard support.
  57. kmFPWINCRT - behaves like Free Pascal's CRT unit under Windows. Similar to
  58. kmGO32, but emulates several incompatibilities that the
  59. Windows CRT unit has with the GO32V2 CRT unit. Not all of them
  60. are emulated though, since some of them can be considered
  61. bugs.
  62. - ptcgraph now has a global string variable WindowTitle, which allows you to
  63. set the window title, before calling InitGraph
  64. - ptcgraph was extended to also support resolutions, different than the ones,
  65. defined by VESA. This means that you can now use ptcgraph with resolutions,
  66. higher than 1280x1024 and widescreen (e.g. 16:9 or 16:10) aspect ratios, as
  67. long as they are supported by the display. For this, you need to call
  68. QueryAdapterInfo and walk through the linked list of modes, to choose a
  69. mode, then pass its DriverNumber and ModeNumber to InitGraph. Here's an
  70. example:
  71. uses
  72. ptcgraph, ptccrt;
  73. var
  74. m: PModeInfo;
  75. gd, gm: Integer;
  76. begin
  77. Writeln('List of all modes:');
  78. m := QueryAdapterInfo;
  79. while m <> nil do
  80. begin
  81. Writeln(m^.MaxX+1, ' x ', m^.MaxY+1, ' x ', m^.MaxColor);
  82. m := m^.next;
  83. end;
  84. Writeln('Now let''s find 1920x1080 with 16-bit colour...');
  85. m := QueryAdapterInfo;
  86. while m <> nil do
  87. begin
  88. if (m^.MaxX = (1920-1)) and (m^.MaxY = (1080-1)) and (m^.MaxColor = 65536) then
  89. begin
  90. InitGraph(m^.DriverNumber, m^.ModeNumber, '');
  91. SetColor($FFFF);
  92. OutTextXY(0, 0, 'Hurrah! Full HD 1920x1080 mode is available!');
  93. ReadKey;
  94. CloseGraph;
  95. Halt;
  96. end;
  97. m := m^.next;
  98. end;
  99. Writeln('Mode not found in list!');
  100. end.
  101. 0.99.14.1
  102. - fixed X11 middle and right mouse button mapping. Previously, the right mouse
  103. button and the middle mouse button were swapped, compared to Windows and DOS
  104. and contrary to the documentation.
  105. 0.99.14
  106. - added new unit ptcmouse for use with ptcgraph & ptccrt applications. It is
  107. similar to the winmouse and msmouse units.
  108. - support for resizable windows extended. Your application now receives
  109. a new event IPTCResizeEvent and is allowed to call a new method called
  110. InternalResize, which adjusts the console's width and height according to
  111. the new window size. The previous behaviour where your application's image
  112. is scaled, without it realizing that the resolution is changed still works
  113. if you don't call InternalResize (or when you use ptcgraph for that matter)
  114. - added support for intercepting the windows close events. When using unit ptc
  115. directly, this is enabled by sending the option 'intercept window close' to
  116. the console and then handling the newly introduced IPTCCloseEvent event.
  117. When using ptcgraph and ptccrt, closing the window emulates pressing Ctrl-C,
  118. in other words, your application will receive the #3 key code via ReadKey.
  119. - fixed crash in hermes (the pixel conversion library, used internally by
  120. PTCPas), encountered when converting from indexed 8bpp to 32bpp on amd64,
  121. when the surface width is not multiple of 8
  122. - even more X11 keyboard fixes
  123. - removed the debug log (grlog.txt) written by programs that use ptcgraph
  124. 0.99.13
  125. - added support for OpenGL under X11 and Windows. You can now use PTCPas to
  126. initialize OpenGL and handle events for you in a multiplatform way (similar
  127. to GLUT or SDL). See ptcgl.pp and ptcgl2.pp in the example directory.
  128. - X11 keyboard handling improvements:
  129. - added support for the numpad keys
  130. - typematic repeat (i.e. when you press a key and hold it down) now sends
  131. only repeating key press events, instead of repeating pairs of key
  132. release + key press. This makes it possible to detect auto-repeat and is
  133. also the way that Windows behaves.
  134. 0.99.12
  135. - pressing Alt or F10 under Windows no longer pauses the application.
  136. - API changes:
  137. - PTC classes have been made descendants of TInterfacedObject and are now
  138. accessed via interfaces. This simplifies memory management, because
  139. objects are now reference counted and automatically freed when they are
  140. no longer used. Unfortunately, this breaks existing code. However it's
  141. relatively easy to fix. See the files INTF-CHANGES-0.99.12.txt and
  142. INTF-CHANGES-FAQ-0.99.12.txt for details.
  143. 0.99.11
  144. - added ptcgraph - an implementation of FPC's BGI-compatible graph unit on top
  145. of PTCPas. It should work on all platforms, supported by PTCPas, except for
  146. DOS (because it doesn't have threads)
  147. - VBE console improvements:
  148. - support for double buffering with video page flipping
  149. - console update synchronized with the vertical retrace
  150. - automatic fallback to windowed mode, if initializing LFB fails. This
  151. results in better compatibility with NTVDM and other environments that
  152. would otherwise require adding the 'disable lfb' option to ptcpas.cfg.
  153. - support VBE 3+ separate LFB and Windowed color masks for direct color
  154. modes. This might fix some wrong color bugs in LFB mode on some modern
  155. VBE 3+ video cards.
  156. - fixed a bug in the X11 event handling that caused unnecessary high CPU use
  157. while waiting for an event
  158. 0.99.10
  159. - fpc 2.4.0 support
  160. - Win64 DirectX support
  161. - X11 DGA 2.0 support
  162. - VBE 2+ LFB support. Enabled by default. Offers a great performance
  163. improvement, but may fail on buggy VGA BIOSes or buggy DOS virtual
  164. machines. If it causes problems, it can be disabled by adding
  165. 'disable lfb' to ptcpas.cfg.
  166. - API changes:
  167. - in the hermes unit, THermesHandle was replaced with
  168. THermesConverterHandle, THermesClearerHandle and THermesPaletteHandle,
  169. which should be treated as opaque pointers, not integers. This only
  170. matters if you use unit hermes directly, and not ptc.
  171. - various bugfixes and code cleanup.
  172. 0.99.9
  173. - big endian support.
  174. - Win64 support (GDI only. DirectX not supported yet).
  175. 0.99.8
  176. - added support for Windows CE. Still in alpha stage. Tested on a Motorola
  177. MPx220 smartphone.
  178. - added support for fullscreen X11 using the Xrandr extension (previously
  179. only the XF86VidMode extension was supported). Also fullscreen X11 now works
  180. even when there aren't any mode switching X11 extensions available. A single
  181. fullscreen mode, which has the size of the entire desktop is offered in this
  182. case.
  183. - added a new simple windowed win32 GDI console, which is able to run even
  184. without any version of DirectX installed.
  185. - the X11 console now returns a mode list.
  186. - fixed a bug which caused win32 fixed-size windows to be non-minimizable.
  187. - imported the OpenPTC 1.0.1 DOS VGA fakemode assembly routines - should give
  188. a nice speed boost on ancient 386/486/Pentium machines.
  189. 0.99.7
  190. - A new event system + mouse support. Yes, I know I should have done this
  191. earlier :) Fullscreen X11 with mouse still does not work well, I'm planning
  192. to fix this in the next version.
  193. - API changes:
  194. - TPTCKey class renamed to TPTCKeyEvent
  195. - Removed int32, short16 and char8 types.
  196. Replaced with: Uint64, Uint32, Uint16, Uint8,
  197. Sint64, Sint32, Sint16, Sint8.
  198. - fixed fullscreen palette modes under DirectX (was buggy on modern NVIDIA and
  199. ATI video cards).
  200. - a new example program, demonstrating the mouse support.
  201. Use it as a reference for now, until I update the documentation with the new
  202. event handling stuff (hopefully this will happen in the next release).
  203. - X11 window is not resizable anymore. Maybe some day I'll implement (optional)
  204. stretching as in win32 windowed mode.
  205. - code cleanup. Hid some implementation details from the interface part.
  206. 0.99.6
  207. - Now distributed under the terms of the modified LGPL (used by the FPC RTL).
  208. See the file modified_lgpl.txt distributed with the library for details.
  209. Thanks to Glenn Fiedler (the author of the original OpenPTC C++ code, that
  210. this library is based on) and Christian Nentwich (the author of the original
  211. C code of the Hermes library and the X11 version of OpenPTC) for giving
  212. permission to distribute the code under this license.
  213. - The Free Pascal Development Team intends to distribute this library with the
  214. Free Pascal Compiler and to base the graph unit on it, which is very cool! :)
  215. - fullscreen support in xshm/ximage mode.
  216. - dga support is now disabled by default.
  217. - added workaround for the 'shmat' bug in fpc 2.0.0's rtl on amd64 linux.
  218. - fixed some compilation-related problems with the example programs.
  219. - fpc 2.0.2 - go32v2 compilation fixed. fpc 1.0.10 support dropped completely.
  220. - some other DOS code fixes and cleanups.
  221. - config file name changed to ptcpas.cfg (~/.ptcpas.conf on *NIX)
  222. 0.99.5
  223. - support for fpc 2.0.0. fpc 1.0.10 support dropped, except for DOS.
  224. - support for amd64 (the code is now 64-bit safe, but still little endian-only)
  225. - fix the (sometimes) missing titlebar when using the metacity window manager
  226. 0.99.4
  227. - some X11 fixes (missing cdecl's, wrong alignments, etc.)
  228. - FreeBSD and NetBSD now compile and work (dga and XShm still not tested...)
  229. - improved exception handling in demos and examples
  230. 0.99.3
  231. - support for fpc 1.9.2+ (adapted to use the new unix rtl)
  232. - the dos console uses rdtsc if available for more accurate timing
  233. - some vesa fixes
  234. 0.99.2
  235. - alt, shift, ctrl modifier keys support for X11
  236. - key release support for win32 and X11
  237. - new example (keybrd2) demonstrating the use of key release events
  238. 0.99.1
  239. - first release to sourceforge