Commit graph

43473 commits

Author SHA1 Message Date
Jérôme Gardou 4e6c12189d revert xlate.c from 48471, never meant to be committed.
Sorry.

svn path=/branches/reactos-yarotows/; revision=48472
2010-08-06 22:09:38 +00:00
Jérôme Gardou e84aac6fb8 [WIN32K]
- sync with trunk (48469)

svn path=/branches/reactos-yarotows/; revision=48471
2010-08-06 21:33:37 +00:00
Jérôme Gardou b06db1f05e [WIN32K, GENDIB]
- Did you know that we should ignore alpha channel of pattern in ROPs? You didn't, I didn't, now we do.
[WIN32K]
  - Use BGR palette as default for 24 and 32 bpp bitmaps.

svn path=/branches/reactos-yarotows/; revision=48470
2010-08-06 14:55:44 +00:00
Jérôme Gardou 3f5d90a47a [WIN32K]
- Rewrite NtGdiStretchDIBitsInternal : clearer, faster, stronger (+1 wine test)

svn path=/branches/reactos-yarotows/; revision=48465
2010-08-05 21:12:57 +00:00
Jérôme Gardou 96444b43c2 Sync with trunk (48463)
svn path=/branches/reactos-yarotows/; revision=48464
2010-08-05 21:03:35 +00:00
Jérôme Gardou 5762f7b639 [WIN32K]
- Use lower level function to set bitmap bits in IntSetDIBits.
Fixes rapps icons.

svn path=/branches/reactos-yarotows/; revision=48420
2010-08-02 19:40:42 +00:00
Jérôme Gardou 52e83d06d9 Sync with trunk (r48414)
svn path=/branches/reactos-yarotows/; revision=48419
2010-08-02 19:09:21 +00:00
Jérôme Gardou f65f4b82ff [WIN32K]
- Do not cast RGBQUAD to PALETTEENTRY or the other way around, you idiot.
  - Report success even when we're asked fo 0 ScanLines in NtGdiGetDIBitsInternal.

svn path=/branches/reactos-yarotows/; revision=48417
2010-08-02 17:25:09 +00:00
Jérôme Gardou 4519685bb8 [WIN32K]
- NtGdiGetBitmapBits : Bits we're given are 16 bits aligned.
  - NtGdiGetDIBitsInternal : we must not stretch, for this there is NtGdiStretchDIBitsInternal. Use lower level functions to do the work, there is no need to create HDCs etc...
Now icons are back.

svn path=/branches/reactos-yarotows/; revision=48416
2010-08-02 16:49:51 +00:00
Jérôme Gardou 501947714e [WIN32K]
- Use correct offset in UserLoadImage, create the bitmap using display DC.
  - BITMAP_GetObject : Report BI_BITFIELDS compression when we should.
  - Use a 0 compatible DC when none is given in NtGdiCreateDIBitmapInternal.
This fixes some wine tests. Enjoy.

svn path=/branches/reactos-yarotows/; revision=48415
2010-08-02 14:45:51 +00:00
Timo Kreuzer 917fbfd1ea [PSDK]
add missing LPCOLORREF to windef.h

svn path=/trunk/; revision=48414
2010-08-02 14:29:09 +00:00
Cameron Gutman 9088c79a22 There is nothing to say about this...
svn path=/trunk/; revision=48410
2010-08-02 03:52:52 +00:00
Jérôme Gardou 0bba315d06 [WIN32K]
- Apply a better fix for correctly report 16 bits alignment for DDBs, and keep them 32 bits aligned as it should be.
  - Reapply Pigglesworth patch, which was correct since mine was not.
Dedicated to tkreuzer, PigglesWorth and lassy, the three guys still on IRC to watch my commits at 3:30 AM.

svn path=/branches/reactos-yarotows/; revision=48408
2010-08-02 01:41:16 +00:00
Jérôme Gardou 53fe62ce9c [WIN32K]
- Colors passed to EngCreatePalette are PALETTEENTRYs, my bad.

svn path=/branches/reactos-yarotows/; revision=48407
2010-08-02 01:09:36 +00:00
Jérôme Gardou a0d32e2d0b [WIN32K]
- DDB are 16 bits aligned.
  - Reset hdc field of the unselected bitmap.
  - Lock it too, so it's not messed with when we unselect it.
  - Move Pattern creation of IntGdiCreateDIBBrush to DIB_CreateDIBSection.

svn path=/branches/reactos-yarotows/; revision=48406
2010-08-02 00:53:25 +00:00
Cameron Gutman caa555a453 [AFD]: BytesAvailable needs to be updated even when peeking so we don't run off the end of our buffer
svn path=/trunk/; revision=48405
2010-08-01 23:52:23 +00:00
Cameron Gutman a7c693ea78 Forgetting to save really sucks. Sorry again for the wasted commit.
svn path=/trunk/; revision=48404
2010-08-01 23:46:57 +00:00
Cameron Gutman e98fc993d1 [AFD]: Fix read data corruption when peeking at network data (TDI_RECEIVE_PEEK is specified for a stream socket)
svn path=/trunk/; revision=48403
2010-08-01 23:42:33 +00:00
Cameron Gutman be40e4a043 Fix a typo
svn path=/trunk/; revision=48402
2010-08-01 23:20:31 +00:00
Cameron Gutman 4e63fd0e5a Fix a copy-paste mistake and remove an unused variable
svn path=/trunk/; revision=48401
2010-08-01 21:08:53 +00:00
Cameron Gutman 14fc97df0c [AFD]: Revert r42674 and part of r47156
svn path=/trunk/; revision=48400
2010-08-01 21:00:40 +00:00
Cameron Gutman 57eed17e05 [DHCPCSVC]: Revert part of r48215
svn path=/trunk/; revision=48399
2010-08-01 20:34:10 +00:00
Giannis Adamopoulos 716e283fb3 [rtl]
- Use __inline instead of __inline__ to fix compilation with msvc

svn path=/trunk/; revision=48398
2010-08-01 16:34:22 +00:00
Giannis Adamopoulos 84d8b7850d [hal]
- define REGISTERCALL in order to replace __attribute__((regparm(3))) and fix compilation with msvc. It was used only as an optimization so it is safe to be defined as FASTCALL for msvc. For gcc it is still defined as __attribute__((regparm(3)))

svn path=/trunk/; revision=48397
2010-08-01 16:27:48 +00:00
Kamil Hornicek 7d7d9eba48 [WIN32K]
Comply with the 32 bit alignment rule. Fixes hatch brushes.

svn path=/branches/reactos-yarotows/; revision=48396
2010-08-01 13:29:22 +00:00
Jérôme Gardou c2a010f5f1 [WIN32K]
- Revert unwanted change and get back to PAL_BGR for default DIB palette mode.
Now yarotows looks like an OS again.

svn path=/branches/reactos-yarotows/; revision=48390
2010-08-01 12:24:04 +00:00
Jérôme Gardou 787cb5551f [WIN32K]
- Finally get rid of ProbeAndConvertToBitmapV5Info
  - Rewrite renderBITMAPfromDIB, and a good bunch of DIB related functions accordingly.
  - Rewrite BITMAP_CopyBitmap into something simpler.
  - Use already existing DIB functions in IntGdiCreateDIBBrush
  - Use DIB sections in NtGdiStretchDIBitsInternal and NtGdiSetDIBits.
  - Use Bitmap hdc for NtGdiGetDIBitsInternal if there is one.

svn path=/branches/reactos-yarotows/; revision=48389
2010-08-01 12:17:35 +00:00
Aleksey Bragin 071e036cb8 [INCLUDE/WINE]
- Update Wine-specific headers to Wine-1.3.
- Remove unneeded 16 bit header, and add a bit of stuff into another legacy header.
- Indicate in config.h that there is a freetype library present.

svn path=/trunk/; revision=48388
2010-07-31 22:39:22 +00:00
Aleksey Bragin 9746a25057 [PSDK]
- Make some winuser.h functions conforming to MS PSDK.

svn path=/trunk/; revision=48387
2010-07-31 22:36:22 +00:00
Aleksey Bragin 9d5dfb1c1c - Fix build, sorry.
svn path=/trunk/; revision=48386
2010-07-31 22:20:34 +00:00
Eric Kohl aacfe3956c [LSASRV]
Add more well known sids to the lookup list.

svn path=/trunk/; revision=48385
2010-07-31 22:02:13 +00:00
Aleksey Bragin cb3bc802c8 [PSDK]
- Get back to old/compatible way of declaring dummy unions and structs for IMAGE_RESOURCE_DIRECTORY_ENTRY. Also, second nameless structure is called DUMMYSTRUCTNAME3 to be compatible with Wine's code which, for some reason, expects WORD Id wrapped into yet another struct, depending on endiannes.

svn path=/trunk/; revision=48384
2010-07-31 21:40:40 +00:00
Gabriel Ilardi 04dc5e3fce [freeldr]
- Patch by Carlo Bramini reviewed by lassy:
The CF must be tested when reading time because the legacy DS12x87
chip shows a condition where it's updating its time registers and if it's the
case then the call should be retried later. Now the time is valid when both CF flags for date and time are good at the same time.
It's better to send the correct value of CF with the proper field to the REGS structure instead of hoping that the flag won't be changed by compiled code.
In the Int386() function I did the fix for acquiring the status flags to send to the software interrupt.
I also think it is also a good idea to always clear the direction flag before
doing movsb/movsw/movsd in this function. Since we are working with DOS stuff,
the state of the direction register could be unknown, who knows what happens
after those INT opcodes. Afterall I don't think that adding these two "cld"
would be a big problem.
See issue #2786 for more details.

svn path=/trunk/; revision=48383
2010-07-31 21:00:40 +00:00
Giannis Adamopoulos a5101cce25 [explorer]
- Using msvc doesn't mean using ms sdks

svn path=/trunk/; revision=48381
2010-07-31 12:16:03 +00:00
Aleksey Bragin 74ff3ad0d7 [PSDK]
- Fix GetTextCharsetInfo prototype according to MS Platform SDK.

svn path=/trunk/; revision=48379
2010-07-31 12:02:46 +00:00
Eric Kohl ad21f9ddae [LSASRV]
- Move all includes into a common header file.
- Create a (still incomplete) well-known-sid lookup table and use it in LsarLookupSids.
- Add missing file headers.

svn path=/trunk/; revision=48378
2010-07-31 11:24:16 +00:00
Eric Kohl d3111f1e5b [LSASRV]
Replace hard-coded privilege names by privilege names from the PSDK.

svn path=/trunk/; revision=48377
2010-07-31 09:06:42 +00:00
Giannis Adamopoulos 7d1896ae99 [browseui]
- keep the hacky declaration of SHANDLE_PTR and make it work with msvc as well
- Make BEGIN_MSG_MAP compatible with msvc

svn path=/trunk/; revision=48376
2010-07-31 07:53:06 +00:00
Eric Kohl f271e405f4 [PSDK]
Add missing privilege names.

svn path=/trunk/; revision=48375
2010-07-31 07:09:40 +00:00
Giannis Adamopoulos 8fd2068781 [shell32]
- Fix a compilation error with msvc

svn path=/trunk/; revision=48371
2010-07-30 18:37:51 +00:00
Giannis Adamopoulos d2a89a0c29 [ndis.h]
- Fix compilation with msvc

svn path=/trunk/; revision=48370
2010-07-30 17:05:17 +00:00
Jérôme Gardou 147e52c02c [WIN32K]
- Cast Colors to RGBQUAD in EngCreateBitmap, since that's what they are.
  - Copy selected palette of the DC when creating a DIBSection with DIB_PAL_COLORS.
  - Do not try to get Colors in NtGdiGetDIBitsInternal when bpp == 0, this doesn't make any sense.
  - Get rid of SURFACE::dsBitfields and SURFACE::biClrUsed.
  - Use RGB as default palette mod when creating the DIB Palette.

svn path=/branches/reactos-yarotows/; revision=48369
2010-07-30 02:15:46 +00:00
Gabriel Ilardi 395c797826 [TASKMGR]
- Make the caption the same as the app title so that bring to focus can work as expected in Slovak and other languages as well. Add a note for translators. 
See issue #5533 for more details.

svn path=/trunk/; revision=48367
2010-07-29 20:17:09 +00:00
Jérôme Gardou b011aff53b [WIN32K]
- rewrite UserLoadImage so that it uses information from the BITMAPFILEHEADER and probes the right buffer.

svn path=/branches/reactos-yarotows/; revision=48364
2010-07-29 18:01:14 +00:00
Amine Khaldi 8e9eff5518 [DXSDK]
- Define STATIC_KSMETHODSETID_BdaChangeSync without braces.
[PSDK]
- _ANONYMOUS_UNION/_ANONYMOUS_STRUCT -> __MINGW_EXTENSION
- usbuser.h : Add missing #endif

svn path=/trunk/; revision=48361
2010-07-29 16:42:00 +00:00
Jérôme Gardou fa93ac8293 [WIN32K]
- Get rid of GetBMIFromBitmapV5Info

svn path=/branches/reactos-yarotows/; revision=48360
2010-07-29 16:21:02 +00:00
Jérôme Gardou 5cfcef35dc [WIN32K]
- Rewrite NtGdiGetDIBitsInternal, with WINE as a reference.
  - Get back DIB Section creation to classic BITMAPINFO.
This si the beginnig of the end for all this BITMAPV5INFO stuff.
It is horrible, BITMAPCOREINFO->BITMAPINFO is already made in user mode, and V4 and V5 features are not used so often.

svn path=/branches/reactos-yarotows/; revision=48359
2010-07-29 16:12:43 +00:00
Giannis Adamopoulos dd08ddbbe9 Revert 48355
svn path=/trunk/; revision=48358
2010-07-29 16:05:54 +00:00
Giannis Adamopoulos 101767d1e6 [basetsd.h]
-define SHANDLE_PTR

[browseui]
-do not define SHANDLE_PTR locally. Using ms psdk isn't the same with compiling with msvc

svn path=/trunk/; revision=48355
2010-07-29 14:40:21 +00:00
Giannis Adamopoulos b3bd25a0cd - Fix setjmp for msvc
svn path=/trunk/; revision=48352
2010-07-29 12:23:03 +00:00