Commit graph

23371 commits

Author SHA1 Message Date
Magnus Olsen 39436f3008 initate work of a CPUtranslator, example M68k to Intel. it is writen so not only M68k can be added. it does not work at all. it is a ground layout how I should code it.
svn path=/trunk/; revision=25251
2006-12-31 14:59:07 +00:00
Saveliy Tretiakov 1282be6796 Fix a typo
svn path=/trunk/; revision=25250
2006-12-30 21:40:32 +00:00
Saveliy Tretiakov 34444545a2 Implement NtGdiPolyDraw (based on wine).
svn path=/trunk/; revision=25249
2006-12-30 20:46:05 +00:00
Aleksey Bragin 0651dba483 Comment out a call to GdiReleaseDC() since it spams debug log with unimplemented messages. I put up a FIXME so it gets uncommented once GdiReleaseDC() is implemented.
svn path=/trunk/; revision=25248
2006-12-30 11:04:20 +00:00
Maarten Bosma 6ef81ff9e1 Different folders for translations and other resources.
svn path=/trunk/; revision=25247
2006-12-30 10:11:58 +00:00
Magnus Olsen f67f7ee675 do not use hacked vfat drv revers the 25243
the hacked do not delete pendling or incomplte data 
and so on, 

svn path=/trunk/; revision=25246
2006-12-30 01:11:14 +00:00
Maarten Bosma f01a075e09 Add changes from cc rewrite brunch. The driver still works under the old cc because it makes use of the USE_ROS_CC_AND_FS define.
svn path=/trunk/; revision=25243
2006-12-30 00:37:52 +00:00
Maarten Bosma 8bf9208764 Add downloader to start menu.
svn path=/trunk/; revision=25242
2006-12-30 00:18:00 +00:00
Aleksey Bragin 4dfd67905c - Comment out the performance counting ("hits: xxx misses: yyy") part for the freetype lib.
svn path=/trunk/; revision=25241
2006-12-29 22:24:43 +00:00
Alex Ionescu 8f2eb74d99 - Fix OB_SECURITY_METHOD prototype, callers, and implementors.
- Add call to SeOpenObjectAuditAlarm in ObCheckObjectAccess.
- Start adding Ob Callout validation on checked builds. For now only done around security functions.
- Set *MemoryAllocated to FALSE in ObGetObjectSecurity early on to avoid inconcistent state if the callback failed.
- Implement new XP function ObSetSecurityObjectByPointer and simplify NtSetSecurityObject by making it use it.
- More Win 2003 SecurityDescriptor Cache functions to sdcache instead of obsecure.c.

svn path=/trunk/; revision=25240
2006-12-29 22:17:29 +00:00
Alex Ionescu 635dda87ec - Fix some subtle bugs in NtWaitForMultipleObjects/NtWaitForSingleObject:
- Fail if memory allocation failed.
  - Don't overwrite original captured handle value when decoding to kernel handle.
  - Use PAGED_CODE.
  - Check timeout validity first before probing the entire handle array.
- Fix a critical bug in NtSignalAndWaitForObject which was using the wrong object type (waitable object instead of signalled objecT).

svn path=/trunk/; revision=25239
2006-12-29 20:52:33 +00:00
Alex Ionescu c0a3750d26 - Fix critical bugs in exception handling: Unwinding was completely broken, using the wrong SEH protector to detect collided unwinding. The correct protector itself also had a broken check.
- Fix architectural bug in the entire TrapFrame<->Context conversion system and Ring Privilege Transitions (Inter-ring and intra-ring) which was lacking proper sanitation and validation of segments, flags and debug registers. Among other things, IOPL is now respected, CS is not KGDT_R0_CODE | RPL_MASK anymore, and the GPF code is now properly being called. This completely fixes exception handling being totally broken and crashing firefox installer, mirc, and other applications.
- Rewrite the page fault handler base code in assembly instead of relying on a broken C routine. Detect VDM, V8086, detecting expected/normal fault in ExpInterlockedPopEntrySList and faults in the system handler code. Rewrite MmAccessFault to be the main function that calls out to other sub-fault functions, and use the same prototype as NT.
- Fix the KGDT boot table to have proper granularity and big flags, and extend it to 256 entries.
- Create proper thread context in RtlInitializeContext and cleanup Rtl Thread routines.
- Remove all int3 and breakpoints from trap handlers, and replace them with a much better "UNHANDLED_PATH" macro which freezes the system, beeps, and displays a message with the line of code that's unhandled. This is to clearly tell the user that something is unhandled, instead of nesting infinite exceptions due to the int3.
- Fix a bug in INT_PROLOG.
- Sanitize EFLAGS and Code Segments in KeContextToTrapFrame and KeTrapFrameToContext.
- Implement KiUpdateDr7 and KiRecordDr7 as well as DR_MASK and other DR-validation macros and functions to protect against DR-vulnerabilites as well as to properly account for each active hardware breakpoint in a per-thread fashion by using the dispatcher header.
- Allow CR0_EM when running in a VDM.
- Fix FPU/NPX Register handling in KeContextToTrapFrame and KeTrapFrameToContext, and also speed it up by manual copying instead of a memory move.
- Properly give IOPL 3 to user-mode threads if they requested it.
- Detect GPF during GPF.
- Detect pagefault with a trap-frame spread over two or more pages and nested.
- Properly sanitize and set correct trap frame in KiInitailizeUserApc.
- Return STATUS_ACCESS_VIOLATION during page faults instead of STATUS_UNSUCESSFUL. 
- Fix assert in VdmSwapContext, as well as Code Selector check which was broken.
- Fix delayed object deletion (ObDeferDeleteObject) and the Ob Repear Routine and list.
- Update Kernel Fun.
- BUGBUG: Temporaily hack VMWare to detection to always detect VMWare.

svn path=/trunk/; revision=25238
2006-12-29 18:49:00 +00:00
Magnus Olsen 32b82baa21 commit same strechblt code for 8,16,32, it does not using putpixel anylong for 8 and 32, and small cleanup
this code can be makefaster, how remove getpixel that will doing huge incress in speed, split calc to
simple 1x 2x .. zoom in/out now we are using 1.1x 2.2x Zoom and 1x 2x zoom same code. if we split it we will
see a speed incress. 

svn path=/trunk/; revision=25237
2006-12-29 13:16:53 +00:00
Magnus Olsen 2e502d8d23 freetype cache glyth patch pass last all my test.patch
ogrinal author of this patch is royce3, modify by tinus so it work again with trunk,  ThePhysicist (timo dot kreuzer at web dot de) did fix the last bugs in it. at last long leave freetype glyth patch, now we got faster text output in reactos. and I where up to 38fps in winquake with this patch (debugbuild + serial debug on). This is very fast. I wonder what speed it give in release build or qemu now. 
   

See issue #511 for more details.

svn path=/trunk/; revision=25236
2006-12-29 00:09:54 +00:00
James Tabor 168bd92ec5 Implement GetDCDWord, update GetObjectType and printing.c fixups.
svn path=/trunk/; revision=25235
2006-12-28 22:36:53 +00:00
Maarten Bosma 7a40310c04 EmuandCo: More applications
svn path=/trunk/; revision=25234
2006-12-28 16:52:07 +00:00
James Tabor bc33042584 Work to date. Update and add more functions to printing.c.
svn path=/trunk/; revision=25232
2006-12-28 05:53:50 +00:00
Eric Kohl 69a2a4ca6e - Rename SCM_START_PACKET to SCM_CONTROL_PACKET.
- Rename SCM_START_COMMAND to SCM_CONTROL_START and use the unused value 0 of the SERVICE_CONTROL_ constants.
- Implement stop command.

svn path=/trunk/; revision=25231
2006-12-26 01:29:22 +00:00
Maarten Bosma 32bfd4a46f Error if download failed.
svn path=/trunk/; revision=25230
2006-12-25 19:25:27 +00:00
Maarten Bosma aa366332eb Add downloader to installation.
svn path=/trunk/; revision=25229
2006-12-25 17:09:33 +00:00
Magnus Olsen eac88d0a30 Update to lates dejavu font, version 2.13
1. 100% finish the Cyrillic for Sans font 
2. 41 new chars support
and allot more. 

svn path=/trunk/; revision=25228
2006-12-25 14:25:22 +00:00
Eric Kohl 8745000456 Add default screen saver.
svn path=/trunk/; revision=25227
2006-12-25 12:38:53 +00:00
Johannes Anderwald 515d199878 - remove stdcall decoration
svn path=/trunk/; revision=25226
2006-12-24 15:57:45 +00:00
Johannes Anderwald aaf231182d - remove stdcall decoration
- include winsock2.h before windows.h

svn path=/trunk/; revision=25225
2006-12-24 15:41:36 +00:00
Johannes Anderwald 8566616d62 - remove stdcall decoration
svn path=/trunk/; revision=25224
2006-12-24 15:36:32 +00:00
Maarten Bosma 8b602f059f Bypass bug in windows, by deleting the content of the applications treeview twice. (Occurs under Windows XP.)
Physicus 24.12.2006 14:31: There's a bug in downloader: when you select Internet then click on Firefox then on Games & Fun, you will find putty there.

svn path=/trunk/; revision=25223
2006-12-24 15:30:50 +00:00
Johannes Anderwald 1ee33be807 - include winsock2.h before windows.h
svn path=/trunk/; revision=25222
2006-12-24 15:20:05 +00:00
Johannes Anderwald 001f6cc36d - remove stdcall decoration
svn path=/trunk/; revision=25221
2006-12-24 15:13:13 +00:00
Eric Kohl 27ddfa674c - Remove trailing whitespace
svn path=/trunk/; revision=25220
2006-12-24 15:00:24 +00:00
Eric Kohl 36deccc25e - Add version resource and description string.
- Ensure the message box pops up when you try to configure the screen saver using the context menu.

svn path=/trunk/; revision=25219
2006-12-24 14:48:52 +00:00
Maarten Bosma ddd895bf12 Forgot to commit this one.
svn path=/trunk/; revision=25218
2006-12-24 13:26:08 +00:00
Maarten Bosma f12ce11adc EmuandCo:
- Fix Typos in English resource file
- Add German translation
- Add applications

svn path=/trunk/; revision=25217
2006-12-24 12:28:27 +00:00
Magnus Olsen 0ed434ca11 a old patch I have for freeldr (did this change one year ago)
small speed in-cress, remove freeldr ros glue C version of  memcpy, memcmp, isalnum, labs and replace it from reactos string.a 
we got asm version of most of them, so that is reason to the speed in-cress of freeldr, freeldr are still slow in reactos thanks 
to our win32k, for we do not cahced the glyth yet. 

svn path=/trunk/; revision=25216
2006-12-23 21:02:31 +00:00
Magnus Olsen 22dc51bae5 Start comment how thing works in dx stuff and done some reformat, adding EnableDirectDraw to the directdraw handler hDD
svn path=/trunk/; revision=25215
2006-12-23 19:06:43 +00:00
Maarten Bosma 9e9286ab0d Call some more Unicode APIs explicitly.
svn path=/trunk/; revision=25214
2006-12-23 18:59:10 +00:00
Maarten Bosma d7eb6d1ba4 Completely eliminate flickering by implementing double buffering.
svn path=/trunk/; revision=25213
2006-12-23 18:28:38 +00:00
Maarten Bosma 3b7c2562ce Prevent the user from making the window too small.
svn path=/trunk/; revision=25212
2006-12-23 18:07:37 +00:00
Aleksey Bragin d53810a92e - Fix width/height params in a call to NtGdiAlphaBlend().
- Temporary disable the alpha blending code, because it doesn't work correctly. Comments added to the code.

svn path=/trunk/; revision=25211
2006-12-23 13:36:07 +00:00
Magnus Olsen 885e2ecded fixed a bug in DdDeleteDirectDrawObject
Zero the DirectDraw handler if it have sussess been free

svn path=/trunk/; revision=25210
2006-12-23 12:25:07 +00:00
Magnus Olsen 412dfceb6a fix a typo
svn path=/trunk/; revision=25209
2006-12-23 10:52:07 +00:00
Magnus Olsen 0435a6b3d6 adding joliet flags to bootcd
svn path=/trunk/; revision=25208
2006-12-23 10:34:05 +00:00
Magnus Olsen 80e2c0393d reformat dib16bpp.c remove mix betwin tab and space
svn path=/trunk/; revision=25207
2006-12-23 05:45:24 +00:00
Christoph von Wittich deecf156b8 fixed some warnings
svn path=/trunk/; revision=25206
2006-12-22 21:49:18 +00:00
Magnus Olsen 14847ebfcf fixed a typo
svn path=/trunk/; revision=25205
2006-12-21 23:36:55 +00:00
Ged Murphy f578f60f09 fix GCC 4.1 build
svn path=/trunk/; revision=25204
2006-12-21 22:58:35 +00:00
Magnus Olsen d7d01873cd Last part of the new strectsblt
remove all mul and div from the loop. 

svn path=/trunk/; revision=25203
2006-12-21 22:36:16 +00:00
Magnus Olsen f2bddbce01 start of new strechblt huge speed incress, the idea is not doing any mul or the div in the for loop. this is only done for 16bpp, same code will be copy to rest later.
1. remove all div and mul from for Y loops
2. todo remove so much as psoible mul and div from X loop

svn path=/trunk/; revision=25202
2006-12-21 21:57:17 +00:00
Magnus Olsen d747ce9acb thx filip notice I use wrong filed to detect alpha blend.
svn path=/trunk/; revision=25201
2006-12-21 20:03:06 +00:00
Magnus Olsen 757b471441 Fixed alpha blend support in DrawIconEx
svn path=/trunk/; revision=25200
2006-12-21 19:43:13 +00:00
Magnus Olsen b818e776ee some more stuff from filip dymatic resolutions change patch.
svn path=/trunk/; revision=25199
2006-12-21 17:38:36 +00:00