Commit Graph

3362 Commits

Author SHA1 Message Date
Sam Lantinga
6ee211b35d Merged no changes? 2010-08-22 12:43:27 -07:00
egottlieb
6d0fb58d50 Create all shaped windows at -1000,-1000 and save the real coordinates. 2010-08-17 01:11:11 -04:00
egottlieb
b6a4181ee9 Recoded Cocoa code that got erased by... failure to commit? Merge? Eh. 2010-08-16 14:01:00 -04:00
egottlieb
b09f1ba43d Moved the +1 to mostly eliminate the visual artifact. 2010-08-16 10:48:54 -04:00
egottlieb
394cc7bd48 Raised binarization cutoff to eliminate alpha-blending of trollface. 2010-08-16 09:55:35 -04:00
egottlieb
91ba94a87c Condensed flag-setting code and put parantheses in the appropriate places. It was that, in the end. 2010-08-16 01:17:19 -04:00
Eli Gottlieb
ce14844102 Set flag bits *exactly* as Andreas showed me in his screenshot. This shouldn't be different, but what do I know about C's order of operations? 2010-08-15 23:57:50 -04:00
egottlieb
2c4b1f57f7 Removed useless debugging code. 2010-08-15 22:03:38 -04:00
Eli Gottlieb
0292ed62d8 Added last test shape. Because. 2010-08-15 21:46:46 -04:00
egottlieb
d7e4ccead0 Added hiding-as-positioning trick and finally fixed flags. 2010-08-15 21:46:04 -04:00
Eli Gottlieb
4246295677 Changed flags and positioning (for the fake-hiding) as Andreas recommended. 2010-08-15 18:52:57 -04:00
egottlieb
502e27f1c8 Mostly seem to have fixed SDL_CalculateShapeTree. Mostly. There still seem to be some rendering artifacts, stepping effects, and such on Windows -- which indicates subtle logic errors in SDL_CalculateShapeTree().
Oh well, back into the salt mine.
2010-08-14 20:29:51 -04:00
egottlieb
1dac65bd3a Finally got the Win32 API code for shaping to work! Just need to fix SDL_CalculateShapeTree() now! 2010-08-14 16:14:36 -04:00
Eli Gottlieb
c02cbc3cbc Added SDL_SetWindowPosition() call to SDL_SetWindowShape(), going to see what this does on Windows. 2010-08-12 18:17:15 -04:00
egottlieb
15e6500cbb Fixing variable naming style. 2010-08-10 16:30:53 -04:00
Eli Gottlieb
12b0fa8c5e Fixed a bug in X11 shaping that refused to use color-key mode. 2010-08-10 16:10:26 -04:00
Eli Gottlieb
84161d16a6 Fixing bugs introduced into X11 shaping implementation by merge. 2010-08-10 15:45:59 -04:00
egottlieb
f3f20e2df1 Switched over to poly-polygon region building and shape-tree traversal for Win32. 2010-08-10 15:39:46 -04:00
Eli Gottlieb
b60c431a34 Fixed formatting of SDL_shape.c post-merge again. 2010-08-09 20:32:15 -04:00
Eli Gottlieb
22cc9dd63f Merged branches again. 2010-08-09 20:29:21 -04:00
Eli Gottlieb
bad338e4af Fixed overwriting of SDL_shape.c in merge. 2010-08-09 20:27:45 -04:00
egottlieb
e497b88e5a Updated shapes folder. 2010-08-09 16:26:45 -04:00
Eli Gottlieb
61432b5725 Merging branches. Will begin correcting mistakes introduced by merging. 2010-08-09 15:41:33 -04:00
Eli Gottlieb
75d19f4863 Reformatting code to match the rest of SDL. Variable names seem OK; replaced tabs with 4 spaces each for indentation. 2010-08-09 15:37:20 -04:00
egottlieb
75a9691e3e Fixed lots of little bugs in Win32 shaping and in SDL_CalculateShapeTree(). Still not actually showing anything on Windows, though there's no crashes and everything compiles fine. Bugger. 2010-08-06 20:22:14 -04:00
egottlieb
2ad29056fc Fixed the off-by-one bug in SDL_RecursivelyCalculateShapeTree(). 2010-08-06 13:52:38 -04:00
egottlieb
082b1f9d41 Finally figured out how to use autorelease pools. 2010-08-05 21:27:32 -04:00
egottlieb
86bd63adea Improving Cocoa implementation and fixed a small bug in SDL_shape.c. 2010-08-05 18:58:45 -04:00
egottlieb
f6801f7941 Shaped windows for Cocoa build and testshape runs, but the actual shaping doesn't work. Something, however, is definitely happening, because we get the backgrounds drawn in two different colors. 2010-08-05 01:03:24 -04:00
egottlieb
c2c9b63c50 Correcting minor bugs and adding assertions to help me track down a NULL pointer bug in Cocoa code. 2010-08-05 00:53:38 -04:00
egottlieb
c4d3ce5615 Building under OS X with command-line tools now works. 2010-08-03 23:41:57 -04:00
egottlieb
db9e3b827b Compiling for cocoa now works. Does it run? We'll see. 2010-08-03 23:22:31 -04:00
egottlieb
63f5546ab0 Implemented shaped windows for Cocoa. Still need to see if they actually work. 2010-08-03 21:56:05 -04:00
egottlieb
1123728a5d Removed superfluous VS2010 build files. 2010-08-03 10:10:06 -04:00
egottlieb
4a74542b6e Got basic, pre-actually-writing-anything Cocoa to build. 2010-08-03 00:47:33 -04:00
Eli Gottlieb
122c35caa0 Why wasn't this in the repository? 2010-08-02 23:58:22 -04:00
Eli Gottlieb
f24f9b94db Added SDL_cocoashape.h 2010-08-02 23:33:04 -04:00
egottlieb
1d4ad960e8 Added and re-added VS2010 solution files. 2010-08-02 22:20:13 -04:00
egottlieb
d8d77da906 Added VS2010 build files. 2010-08-02 21:43:08 -04:00
egottlieb
ce799da578 Worked on Windows implementation and the quad-trees. 2010-08-02 01:54:59 -04:00
egottlieb
1341532f15 Added VS2010 tests solution file. 2010-08-01 23:27:22 -04:00
egottlieb
94bc2a7db5 Added Windows build files for testshape. 2010-08-01 23:26:37 -04:00
egottlieb
157494348a Converted some project files to VS2010, adding new files. Backups were made. 2010-08-01 23:16:32 -04:00
egottlieb
ad864c387a Changed the file name to its correct, required one. 2010-08-01 23:07:59 -04:00
Eli Gottlieb
fd29b00539 Fixed a couple of bugs in the general and X11 shape code, and fixed a bug in testshape that was keeping it from recognizing surfaces without alpha. Thanks to Andreas's bit-bashing tip, X11 shaped windows now work entirely, AFAICT. 2010-08-01 21:10:42 -04:00
Eli Gottlieb
d184c2cdf1 Added Andreas's VS2010 patch for testshape. 2010-07-30 18:04:21 -04:00
Eli Gottlieb
c94b94e367 Added Andreas's patch to fix my silly C++-style errors. 2010-07-29 22:57:39 -04:00
Eli Gottlieb
ee13761474 Added the header to the repo. Oops. 2010-07-29 12:49:17 -04:00
Eli Gottlieb
dee5233291 Wrote out the system for breaking shape-masks into quad-trees of rectangles, and added code to conglomerate those quad-trees of rectangles into regions for setting shapes under Win32. 2010-07-28 23:35:24 -04:00
Eli Gottlieb
6d3fa3eec4 Added shapes folder to hg. 2010-07-26 21:49:32 -04:00