Commit Graph

64 Commits

Author SHA1 Message Date
Mike McCormack d7b9a23afd gcc 4.0 -Wpointer-sign fixes (Reg* functions). 2005-07-06 19:08:05 +00:00
Alexandre Julliard 68db49f233 Moved ppd file configuration to HKCU\Software\Wine\Printing\PPD Files. 2005-06-28 13:51:14 +00:00
Alexandre Julliard 2e4bca9db5 Added magic comments to all Wine-specific registry accesses to make
them easier to grep.
2005-06-13 18:56:00 +00:00
Alexandre Julliard 0bb4bddff4 Store the module instance we get in DllMain to avoid extra LoadLibrary
calls.
2005-05-06 20:02:36 +00:00
Jakob Eriksson 9ed61de9a2 Get rid of HeapAlloc casts. 2005-03-24 21:01:35 +00:00
Michael Stefaniuc 5ad7d858e0 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2004-12-23 17:06:43 +00:00
Eric Pouech 0a258964c2 Const correctness fixes. 2004-11-30 21:38:57 +00:00
Alexandre Julliard 83decd25ad Changed the CreateDC driver entry point to use an HDC instead of a DC
pointer.
2004-03-04 06:26:11 +00:00
Alexandre Julliard b65d13605c Fixed callers of GetLocaleInfoW to use the correct buffer size. 2004-02-25 01:35:01 +00:00
Alexandre Julliard b89525fb06 Removed the bitsPerPixel field in the generic DC structure, and leave
it up to the graphics driver to define it if necessary.
2004-01-18 22:20:17 +00:00
Vincent Béron 431a96f43a Get rid of a W->A crosscall (ResetDCA->ResetDCW). 2004-01-13 01:06:44 +00:00
Huw Davies 9fb3f4e0d7 Update the visrgn in ResetDC so that GetClipBox works correctly after
a change in paper size/orientation.
2003-11-09 00:26:50 +00:00
Huw Davies 83d6e26b31 Support for duplex printing. 2003-11-05 00:37:47 +00:00
Dmitry Timoshkov 3a910c7d1f Convert CreateDC to unicode in the driver interface. 2003-08-12 20:42:18 +00:00
Dmitry Timoshkov 4e1ef0c114 For all DLLs with defined DllMain and which do not require
DLL_THREAD_ATTACH/DLL_THREAD_DETACH notifications, call
DisableThreadLibraryCalls() in order to slightly improve performance
on thread creation/exiting.
2003-06-30 20:53:48 +00:00
Huw Davies a3c10cf1e0 Make sure we update dc->bitsPerPixel. 2003-06-23 20:52:22 +00:00
Huw Davies 69c7164977 Look up the printer's port in the registry if neither CreateDC or
StartDoc specify one.
Photoshop 7 has a bug that results in cbInput being 2 less than the
length of the string rather than 2 more.  So use the WORD at
in_data[0] instead.
2003-05-20 02:24:50 +00:00
Huw Davies 6124a02733 CUPS uses the ppd file to store the default paper size, so we'll read
it from here.
If the ppd doesn't contain an explicit resolution then default to
300dpi.
2003-05-20 02:22:25 +00:00
Marcus Meissner 26b9bcaba3 Was using the wrong define for the CUPS soname. 2003-03-07 20:36:08 +00:00
Francois Gouget 9b0b1e078a Remove (POINTER)NULL casts. 2003-01-14 23:43:41 +00:00
Dan Kegel 0fd521fee3 Change RECT to use LONG to match win32 standard headers and fix format
strings to use %ld for RECT elements.
2003-01-08 21:09:25 +00:00
Dimitrie O. Paun 297f3d898d Define NONAMELESS{STRUCT,UNION} explicitly in the files that need them. 2003-01-07 20:36:20 +00:00
Marcus Meissner f061f76704 Do not link against -lcups directly, but dynamically load it if
present (just like freetype etc.)
2002-11-12 02:22:24 +00:00
Alexandre Julliard 1e1313d54c Made the dll entry point default to DllMain and removed most of the
'init' spec file declarations.
2002-11-04 23:53:41 +00:00
Marcus Meissner 0f53dbf32b Specify existing extra size of WINEPS Devmode structure.
Make ExtDeviceMode16 in WINEPS return the correct size.
2002-11-04 22:37:57 +00:00
Alexandre Julliard b34fb35b31 Fixed warnings caused by conversion to -DSTRICT. 2002-10-18 23:48:57 +00:00
Patrik Stridvall d016f819f1 Added include protection for unistd.h and sys/time.h. 2002-08-17 00:43:16 +00:00
Huw D M Davies 933733ce5b Get the initial paper size from the locale info. 2002-08-15 23:20:19 +00:00
Huw D M Davies 7a6ea91913 Handle dmScale. 2002-06-24 23:41:55 +00:00
Alexandre Julliard d3cab1857a Moved DC origin into device-specific structure.
Fixed handling of DC origin in X11 driver.
2002-06-10 22:52:47 +00:00
Vincent Béron 9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Alexandre Julliard 92b376d61d Moved parts of the DC initialisation and bitmap selection out of the
drivers into the common code.
2002-05-07 02:08:46 +00:00
Huw D M Davies b88f72465a Implement ResetDC and PHYSICALOFFSET[X|Y] devcaps.
Fixes to MergeDevmodes.
2002-04-06 00:12:42 +00:00
Huw D M Davies 7526fc5f92 Changed default paper size to letter. 2002-04-06 00:04:31 +00:00
Alexandre Julliard e21c15e39d Changed the GDI driver interface to pass an opaque PHYSDEV pointer
instead of a DC structure.
Removed some direct accesses to the DC structure from the drivers.
Got rid the bitmap driver.
2002-03-28 22:22:05 +00:00
Alexandre Julliard 0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Francois Gouget f101e2760b Add support for environment variables in the printer settings.
Remove the fixed-size buffers.
2001-10-22 19:00:08 +00:00
Alexandre Julliard 9208301d16 Rewrote Escape to avoid calling down to Escape16.
Replaced Escape by ExtEscape in the DC function table.
2001-07-29 20:25:14 +00:00
Alexandre Julliard 99bb9f9775 Added GetDeviceCaps to the DC driver interface. Removed devCaps
pointer in the generic DC structure.
2001-07-28 00:18:02 +00:00
Alexandre Julliard 3dd63eb2ad Build the DC function table by using GetProcAddress on the graphics
driver module. Moved driver support to dlls/gdi.
2001-07-27 19:37:31 +00:00
Ian Pilcher 42e052d405 Rewrite TrueType font metric parsing code. 2001-07-26 21:42:45 +00:00
Alexandre Julliard 5f728cae70 Removed HEAP_strdupA. 2001-07-24 21:45:22 +00:00
Ian Pilcher 4bc1ebb5ed Modify init code to handle const data types. 2001-07-24 20:52:19 +00:00
Alexandre Julliard 6bbc745dde Moved the 16-bit pointer to the DIB bits out of the driver-specific
structure and into the main bitmap structure. Removed
CreateDIBSection16 from the driver interface.
2001-07-22 23:13:08 +00:00
Dmitry Timoshkov 043f64021d Replace PROFILE_* functions by Reg*. 2001-07-02 18:00:33 +00:00
Patrik Stridvall 172cd1b967 Fixed some issues found by winapi_check. 2001-06-11 20:16:11 +00:00
Marcus Meissner 0c63012b6d Implemented /etc/printcap based printing support.
Changed 'CUPS:printername' to 'LPR:printername'.
Some fixes in AddPrinterW().
2001-05-09 17:10:41 +00:00
Ian Pilcher 506f790c41 Fixed rounding error in page size calculation. 2001-05-07 20:15:23 +00:00
Marcus Meissner 8367bafb1a Report that we have 2^16 colors, so PowerPoint97 prints colored
slides.
2001-05-07 18:13:42 +00:00
Ian Pilcher 91857a6c1a Misc. error checking in PostScript driver. 2001-05-03 18:34:27 +00:00