Граф коммитов

381 Коммитов

Автор SHA1 Сообщение Дата
troy%netscape.com a2bff8ea8b Changed array of points to be a const for DrawPolygon() and FillPolygon() 1998-07-17 17:32:53 +00:00
troy%netscape.com 9ff5acd0ba Added DrawPolyline 1998-07-17 17:26:21 +00:00
troy%netscape.com fb15561796 Changed to use MaskBlt() under NT when rendering a transparent image 1998-07-17 16:50:32 +00:00
troy%netscape.com 25cc6425bc Added code to do bit-blt with a mask using a SRCAND of the mask
followed by a SRCPAINT of the image
1998-07-17 04:37:18 +00:00
troy%netscape.com a02ce51ffa Some more work on transparent images 1998-07-17 00:09:19 +00:00
troy%netscape.com 5f8cf526e6 Fixed Init() to compute the mask row size correctly 1998-07-16 22:18:36 +00:00
spider%netscape.com 04fbb3013c Performance Optimization: Do not create a writeable GC on every
instantiation of a rendering context.  Re-use the old one.
1998-07-16 22:02:36 +00:00
spider%netscape.com 43b60ec28f Do not reset the clip mask when drawing to onscreen buffer. 1998-07-16 21:36:39 +00:00
troy%netscape.com 70d278f3ef Turned back on optimized images 1998-07-16 18:32:17 +00:00
kmcclusk%netscape.com e8bcfe5f85 Changed CopyOffScreenBits to copy from 0,0 instead of using the aBounds (x,y) 1998-07-16 17:40:47 +00:00
troy%netscape.com 8fb601c4a9 Changed background color to be a const 1998-07-16 04:51:12 +00:00
troy%netscape.com 4b5024c9a1 Fixed some build bustage I introduced 1998-07-16 03:09:33 +00:00
troy%netscape.com 2c3fd8a09b Changed image group GetImage() member function so the background color
is a pointer and not a color by value. This allows it to be NULL if the
caller wants a transparency mask to be created
1998-07-16 02:32:08 +00:00
rpotts%netscape.com 14a8c49f35 Added nsIURL argument to the nsIStreamListener interface 1998-07-15 22:38:01 +00:00
troy 039fc5e345 Unused 1998-07-15 18:58:44 +00:00
spider 334fb4e5c0 Fix for multitude of print statements that SHM is not available when
displaying on Hummingbird PC X Display Server
1998-07-15 17:03:53 +00:00
spider 484b2fe44d Fix for crash on servers not supporting MIT-SHM 1998-07-15 02:29:10 +00:00
spider d1eee24460 query the server for the pixmap format rather than trying to guess ourselves 1998-07-15 01:29:20 +00:00
spider a91248da1f MIT-SHM implementation for offscreen drawables 1998-07-15 01:08:35 +00:00
spider 96c854471a Removing incorrectly added Mac specific files from Motif directory 1998-07-14 22:35:56 +00:00
spider f35b99eb88 Fix for not unloading fonts no longer needed 1998-07-14 20:32:33 +00:00
scullin 33ff9893e2 Turn on image caching. 1998-07-14 18:43:47 +00:00
spider 36df57eb8d Performance Optimization: Cache the XFontInfo struct so don't need
to call XQueryFont on every GetWidth.
1998-07-14 17:41:06 +00:00
dcone 6271b85bb8 fixed back to async 1998-07-10 13:25:36 +00:00
dcone dcae2d1451 16 bit speed testing code 1998-07-10 12:53:15 +00:00
kmcclusk bf01993fae Added fields mXstring and mXstringSize 1998-07-10 00:49:04 +00:00
kmcclusk 87666f18d6 Modified GetWidth to give correct values under Linux 1998-07-10 00:20:38 +00:00
dcone a445815c86 16 bit blending is now operational 1998-07-09 14:08:36 +00:00
vidur 16ce55911a Added back asynchronous image loading 1998-07-08 23:45:10 +00:00
dcone 97b246ee0e Intermediate 16 bit blending 1998-07-08 14:31:31 +00:00
thom 254c1d8574 First Checked In. 1998-07-07 21:26:45 +00:00
thom 57b035a983 First Checked In. 1998-07-07 21:07:54 +00:00
kipp 30f6bf49ba Removed some compiler warnings 1998-07-03 23:16:43 +00:00
thom d0581f7b04 Mac linux fix. 1998-07-01 23:31:42 +00:00
rpotts e4157d9a39 Fixed up IID for nsIStreamListener interface 1998-07-01 11:09:49 +00:00
atotic 90b32ba9d8 Fixed mac warnings 1998-06-27 02:47:44 +00:00
vidur 3072463595 Fail if the FirstWrite for the image returns an error 1998-06-26 22:08:03 +00:00
dcone 9b6e982736 Blending now uses the Upper left to place the source image 1998-06-26 14:06:34 +00:00
michaelp 5d2f9c52d5 removed flushgc in setfont. 1998-06-25 22:20:30 +00:00
spider 0b1808db40 Perf improvement... 1998-06-25 21:42:39 +00:00
spider 5130a749f8 fixed. 1998-06-25 18:43:50 +00:00
michaelp cb9dae679f killed commented hackyfontname junk. removed malloc()/free(), etc. from unichar
text measurement.
1998-06-25 18:27:26 +00:00
dcone 9d836d461b added the offset for blending, and a routine to save off bits 1998-06-25 15:07:31 +00:00
spider e471b6c3bb a little cleanup for unix. 1998-06-25 05:54:12 +00:00
spider 36f9a56297 once again runs under linux. 1998-06-25 05:37:54 +00:00
spider 467c71a218 fixed build errors. 1998-06-25 04:59:17 +00:00
michaelp e183f05efb added init() method to prescontext.
creator of prescontext is responsible for initializing pres context.
devicecontext is now init()ed with a nsNativeWidget.
removed hacky X Display stuff from device context and font metrics.
removed hacky code from windows font metrics.
changed nsNativeWindow to be nsNativeWidget.
added more code for compositor back-to-front pass.
improved text performance on X.
changed nsHTMLTagContent.cpp so that it will build with MSVC 4.1.
1998-06-25 04:24:45 +00:00
kmcclusk d72b329738 Fixed PRInt16 cast 1998-06-24 23:58:59 +00:00
kmcclusk fdb915d14e fix 16bit visuals 1998-06-24 22:51:16 +00:00
vidur f3e2e64df2 Changed over to asynchronous image loading 1998-06-23 18:49:06 +00:00
rpotts 0443e6dcf3 Keep a global reference to the Image Manager to prevent it from being deleted. 1998-06-23 18:38:33 +00:00
rpotts d7980165d3 Do not crash if the Font cache has not been initialized yet... 1998-06-23 18:37:49 +00:00
spider f49d60a5e4 Fix nasty crash dereferncing mContext 1998-06-22 21:33:12 +00:00
dcone e83ef40580 took out printf's and cleaned up code 1998-06-22 17:06:13 +00:00
dcone d1a2f1280f fixed some bugs, intermediate checkin 1998-06-22 14:41:23 +00:00
kmcclusk cea81403d9 Fix for GIF animation color table bug. Don't create a new color table when converting to a new image format 1998-06-22 01:57:13 +00:00
kmcclusk 1dae7d274b Changes to nsImageUnix.cpp to support GIF animation. Works but color table is still wrong. 1998-06-22 01:37:17 +00:00
kmcclusk 9e7acc0f56 Fixed places which were deleting the mImageBits which was causing viewer to crash. Also fixes some of the GIF animation problems. 1998-06-21 23:55:08 +00:00
spider 0afc3d6d11 Support for Optimized GC and Regions in Rendering 1998-06-21 07:02:44 +00:00
spider 83c6a673f9 Fix dcone bustage 1998-06-19 23:16:07 +00:00
dcone d70f68c905 fixed some image problems, put 16 bit support in 1998-06-19 22:02:12 +00:00
rods 72dde91991 Optimize fixes 1998-06-19 19:45:47 +00:00
rods ab4d4a9c0a Fixed up images even more, added calls to get the appropriate bits_per_pixel 1998-06-19 14:47:36 +00:00
spider 2e802af593 Remove NOISY_FONTS ifdef so not printing so much 1998-06-18 23:32:58 +00:00
spider 3626bfa96d Cache visual and depth information in drawing surface since it is not available
when the surface is an offscreen PixMap
1998-06-18 23:00:05 +00:00
dcone 651c8e3cc1 fixing up images 1998-06-18 22:19:08 +00:00
spider d51e0e5449 Fix bustage. Change tabbing to be compatible with mozilla.org. 1998-06-18 22:15:31 +00:00
dcone 39fef01ee3 fixed a cast to PRInt8 1998-06-18 22:05:26 +00:00
dcone d3101998cd made some changes 1998-06-18 22:04:23 +00:00
dcone a62da44902 Added the computmetrics call, fixed some small bugs 1998-06-18 14:17:17 +00:00
spider 52a8481d3d Really fix Unix builds - should be a pointer 1998-06-18 01:30:06 +00:00
kmcclusk 19b04d5823 Changed new of mImageBits to PRUint8 instead of unsinged char. doesn't like this under IRIX. 1998-06-18 00:54:07 +00:00
dcone fa0c757a7a Commented out ComputeMetrics 1998-06-17 23:01:28 +00:00
dcone 5c97c01264 added code for image, fixed a bug 1998-06-17 22:55:42 +00:00
spider c3f10d08d2 fontmetrics now work. fixed random crap in rendering context. 1998-06-17 22:23:36 +00:00
dcone 086baf73b4 rename commit 1998-06-17 20:43:32 +00:00
dcone 5a3c122df8 add compute metrics 1998-06-17 20:37:58 +00:00
dcone 4df14b7a5c Take out mMask 1998-06-17 20:36:24 +00:00
dcone 407718431c Add some member variables 1998-06-17 20:35:21 +00:00
dcone 8a3e41b623 alpha fix 1998-06-17 20:31:21 +00:00
dcone 531d6d8d61 First nsimage work 1998-06-17 20:03:40 +00:00
troy 658936c60b Changed to remember the text color rather than set/restore it each time we
render text
1998-06-17 19:53:57 +00:00
troy a57f717690 Changed DrawString() to use ExtTextOut(), and moved SetBkMode() call to
SetupDC()
1998-06-16 21:57:46 +00:00
atotic b790e17110 Last enum should not be followed by a ','. This generates warnings on the Mac 1998-06-16 21:45:48 +00:00
atotic d746b0cbf3 Made the projects compile in the dist world 1998-06-16 21:41:31 +00:00
atotic fcb81f3583 First Checked In. 1998-06-16 21:39:13 +00:00
michaelp 7ec58734f5 PopState() now returns PR_TRUE if there is an empty clip region after the pop. 1998-06-16 16:49:29 +00:00
dcone a382a7878f intermeditate updates to blend and test program. It now works in 24 bit 1998-06-16 13:09:46 +00:00
spider 1b798b801e Fix some Unichar HTML Rendering 1998-06-16 02:21:46 +00:00
spider 9635153ef3 Fixes to get viewer to render on Unix 1998-06-16 00:57:33 +00:00
troy 524edb1fcb Changed to set the polygon fill mode in CommonInit() instead of when drawing
polygons
1998-06-15 18:50:08 +00:00
vidur 3fc6e19717 Asynchronous loading of images 1998-06-12 22:08:39 +00:00
spider 1eef3c54da Fix for rendering problem where everything goes black AFTER the first paint on non-8 bit displays 1998-06-12 01:30:52 +00:00
rods 08e291a739 kludge for now 1998-06-11 23:10:41 +00:00
spider 5cc1ba3443 Support for TrueColor display, add nsNativeDeviceContext to Init method of nsIDeviceContext, fix FontMetrics crash if no RenderingContext is available. 1998-06-11 21:26:21 +00:00
rods 8777c47de9 added GetBitInfo to fix the build 1998-06-11 19:43:26 +00:00
dcone ae81da7686 updated blending code, and tests 1998-06-11 17:33:26 +00:00
spider 2662280215 Draw text from upper left rather than baseline 1998-06-11 02:15:12 +00:00
spider a9ac87cfab Remove duplicate drawingsurface. fix memory leak 1998-06-11 01:22:26 +00:00
spider 97462bdc65 Compute TWIPS during Init() of DeviceContext rather than waiting
until the RenderingContext is created.
1998-06-11 00:32:29 +00:00
rods 55444762f0 added PRUint32 cast to unbreak the build 1998-06-10 20:34:38 +00:00
rods 4502e8a096 24 bit color fix 1998-06-10 18:18:35 +00:00
spider cb9af0c0f9 Attempt to do the right thing on 24 bit displays ... good luck 1998-06-10 17:29:11 +00:00
spider 2389534bcc WIP: XLib Image stuff 1998-06-10 01:59:11 +00:00
spider 55e45a3f09 More Region fixes 1998-06-10 00:44:43 +00:00
spider ddf16edf46 Region fixes - need to create region before they can be used 1998-06-10 00:06:38 +00:00
spider b769c08611 Implement SetClipRect 1998-06-06 01:41:42 +00:00
spider eb9da95f49 Buf fix: Remove extra colormap install. Also remove clip flags from
rendering context
1998-06-05 21:04:18 +00:00
spider 0a025c9332 Complete double buffering implementation. Be sure to reset the offscreen
device upon destruction of the drawing surface
1998-06-05 18:56:42 +00:00
spider bdd67c9436 WIP ... GraphicsState maintenance 1998-06-05 01:39:53 +00:00
spider 3e18229ac2 Implement Matrix Transformation 1998-06-05 00:52:54 +00:00
spider 073ca221ec Finish Implementation of the DeviceContext on Xlib .. twips units, gamma tables, etc.. 1998-06-04 23:12:07 +00:00
spider 80d2fd40a8 Fix for converting from NS to X RGB Components 1998-06-04 18:41:47 +00:00
karnaze 0070393397 added modes for backward compatibility 1998-06-04 17:23:48 +00:00
spider 0500f1b95c Implemented nsRegionUnix 1998-06-04 08:40:58 +00:00
spider 2b3018156d Add unix to build process by default now 1998-06-04 05:16:18 +00:00
spider 3c7b01a29b Remove all references to Xt and use only Xlib.
On Linux, add Library Path to Xlib in Makefile
1998-06-04 05:15:35 +00:00
spider 0ba20b02de Missed last nsIRegion checkin ... add substract back in... 1998-06-03 23:12:02 +00:00
michaelp 62938843da added optimization so that as we render top->bottom, if the clip region ever
becomes empty, we stop rendering.
1998-06-03 21:30:51 +00:00
spider 6731e3addd Remove old Subtrct method from nsRegion due to interface changes
Add support for 8 bit color on ro and rw devices
Add ConvertPixel() routine to convert from gfx to X
1998-06-03 19:01:41 +00:00
michaelp d039ec90ae added support of irregular damage regions to viewmanager. 1998-06-03 03:12:52 +00:00
michaelp 98a8734b81 added ability to select regions into rendering context. 1998-06-02 22:04:09 +00:00
spider 7689eb59b2 Implement Native Text Width routines for char and unicode 1998-06-02 19:57:35 +00:00
spider f1b4918de9 Minor Rendering fixes. FontMetric hardcoded to get by. Implemented
FillPolygon/DrawPolygon.
1998-06-02 19:35:41 +00:00
spider 091a2de99f Change to using .so's in Makefile. Temporarily hardcode some
TextMetrics stuff
1998-06-02 01:16:48 +00:00
spider a67d90ccbd The beginnings of some font stuff 1998-06-01 22:41:01 +00:00
spider 92a03c0c92 Add raptorgfx to link list 1998-06-01 03:41:42 +00:00
spider 803e996142 Update for new interfaces (stubs) 1998-06-01 03:23:40 +00:00
spider 799e5f7ce5 Add nsRegionUnix.cpp to .so. dlopen() on Linux 2.0 would fail since it can't
resolve this class.
1998-06-01 03:19:41 +00:00
spider d782ad9348 Fixes to support latest GFX changes 1998-05-28 00:23:10 +00:00
michaelp a5ca4df280 added region to factory. 1998-05-27 17:11:37 +00:00
michaelp d380754776 added support for front-to-back view rendering. 1998-05-27 02:13:28 +00:00
rickg aaa1f00b47 fixed a minor build problem with blender 1998-05-22 19:16:08 +00:00
dcone 71601b7067 Added the nsBlender classes to the project 1998-05-22 14:15:57 +00:00
spider dd1b1d6974 Adding the beginnings of Colormap Installation 1998-05-22 01:58:31 +00:00
spider 3e2a20af74 Some additional Rendering Implementations (Line/Rect/Arc)
Support for offscreen Pixmap's
1998-05-21 08:24:44 +00:00
spider a8e7e6f383 Add motif to DIRS, commented out for now 1998-05-20 23:20:32 +00:00
spider f68c4a84eb Xlib mods 1998-05-20 23:17:49 +00:00
dcone 91600e8e45 put in the inverse color table routine and did 8 bit alpha 1998-05-20 21:12:38 +00:00
michaelp e80db6bee4 removed rects from region apis. fleshed out windows region implementation. 1998-05-19 22:08:46 +00:00
rods 44ebed2fda initial checkin 1998-05-19 20:39:31 +00:00
thom 30cd0a01d3 mac build 1998-05-18 22:50:19 +00:00
michaelp 45091a02b2 added stub nsRegionWin.cpp 1998-05-18 22:24:20 +00:00
michaelp 5a1d871fac killed nsRegion.h. added nsIRegion.h. added SetClipRegion() to rendering context.
modified APIs that had been referring to nsRegion to use nsIRegion.
1998-05-18 21:46:20 +00:00
thom 72eb9dc87f gfx is a graphics envionment for nglayout 1998-05-15 22:11:03 +00:00
dcone 502890ddc2 More composition code, much faster now 1998-05-14 21:49:58 +00:00
michaelp 56639a66f9 added gamma correction of images. 1998-05-14 00:27:38 +00:00
peterl a0ab06872f fixed pow problem 1998-05-13 19:01:55 +00:00
michaelp df8d635db9 fixed compiler overload warning on tinderbox. 1998-05-13 18:54:18 +00:00
michaelp f206060f3d added gamma correction methods to the device context. the windows rendering context now
gamma corrects colors. fixed tablecellframe to call the right nsStyleCoord constructor.
1998-05-13 18:15:06 +00:00
dcone 8491a3747e speed up of alpha, some small fixes, inter checkin 1998-05-13 14:28:16 +00:00
kipp 1dbaee03cc Remove useless header file 1998-05-09 03:20:37 +00:00
michaelp e44f04e74c when switching documents, the scrollbars are reset. 1998-05-08 17:50:43 +00:00
dcone db51fb2ec1 put back in optimize 1998-05-08 15:05:27 +00:00
dcone 05950ddc0a Some more alpha blending, fixed some bugs and the test app now works 1998-05-08 14:24:53 +00:00
michaelp 4702d24f2a deferred creation of null pen until we actually need to use it. 1998-05-07 18:00:48 +00:00
michaelp 72f8a6f853 sped up filled polygons. 1998-05-07 17:54:14 +00:00
michaelp 35fca6a417 hey, now the state stack is actually useful. duh. 1998-05-07 01:10:20 +00:00
michaelp c3ce482f56 added pens to graphics state. more performance improvements. 1998-05-06 22:50:23 +00:00
michaelp a4c5a8353c added fonts to graphics state stack. general optimizations. 1998-05-06 16:42:05 +00:00
michaelp f85d6bf859 added solid brushes to graphics state. 1998-05-06 02:26:17 +00:00
michaelp 4ad088ce79 when selecting a bitmap into a drawing surface, we now reselect the bitmap
that used to be there when we're done.
1998-05-05 22:39:19 +00:00
michaelp fa29f980b5 API cleanup for images and drawing surfaces. 1998-05-05 22:11:50 +00:00
michaelp d3d75f6cbf cleaned up. 1998-05-05 18:34:51 +00:00
dcone 1b17f325e6 Composition Work 24 bit complete 1998-05-05 14:47:16 +00:00
spider 26364c07ab Fix UNIX build bustage on some systems where tweak_nspr gets appended to TARGET after inclusion of rules.mk, thus breaking nsinstall. 1998-05-01 17:11:13 +00:00
rpotts 374ac13e18 added netlib to the include path... 1998-05-01 05:07:25 +00:00
michaelp cea9ad2c23 fixed bug in state management of clip rects. 1998-05-01 03:08:08 +00:00
dcone f13f98ddad Updated nsImageWin and gfx bit test for composite functionality 1998-04-29 20:28:16 +00:00
rpotts 4c0a20e9f0 added include of string.h since NSPR no longer includes windows.h which pulled it in... 1998-04-29 20:04:28 +00:00
rpotts ba5d204422 Added windows.h since NSPR no longer includes it... 1998-04-29 20:01:24 +00:00
rpotts 3481de99be added windows.h since it is no longer provided by NSPR 1998-04-29 19:57:57 +00:00
kipp 4857393413 Fixed compiler bugs/warnings 1998-04-26 03:13:20 +00:00
kipp c8a93e628c Added missing newline 1998-04-26 02:57:39 +00:00
troy eed6d2436b Changed IntersectRect() to return an empty rect in the case where the
two source rects don't intersect. Also changed '==' operator to return
TRUE if both rects are empty
1998-04-25 04:34:52 +00:00
kipp 01ab9174da define win32_lean_and_mean 1998-04-23 16:47:26 +00:00
vidur eb5ffac358 Documenting image library interfaces 1998-04-15 19:37:44 +00:00
michaelp 59ef1e49c9 fixed clip region state popping bug. 1998-04-14 22:42:24 +00:00
dcone c2da144983 Added documentation 1998-04-14 22:20:32 +00:00
dcone 0f2f5a8bcf Added documentation 1998-04-14 19:56:15 +00:00
kipp 4717009d75 moved to pub 1998-04-13 20:24:54 +00:00