CHANGES.txt 13 KB

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