Commit Graph

14013 Commits

Author SHA1 Message Date
Stephan Aßmus 994ae14bb5 a couple of fixes for determining transparent pixels with regard to dithering, new auto transparency mode (from alpha channel) replaces nonsense index mode (the index mode is nonsense, because there is no control over which color gets which index, therefor, the user is better of specifying the specific color, which is supported)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14334 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-06 23:22:41 +00:00
Axel Dörfler ece4feca93 Use snprintf() instead of sprintf().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-06 20:40:00 +00:00
Axel Dörfler eddf43dd76 Added missing clock() function.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-06 17:33:10 +00:00
Rudolf Cornelissen 57ba12dcf6 updated docs. Note BTW that TVout support is still 'experimental' and under development.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14328 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-06 15:57:31 +00:00
Rudolf Cornelissen b0fce4813c enabled full TVout support on singlehead cards for the supported encoders, dualhead cards now display the testimage in the selected TVout mode. LCD panels are now taken into consideration and should work with the code enabled, though not (correct) while TVout is active (hardware limitation I expect). DPMS off for panels and CRT's while doing TVout is still lacking. I tested all video modes on a TNT1 with BT869: work beautifully: exactly like with BeTVOut. I'm glad I had that done already.. :). For singlehead cards I need to update some prefs panel program to be able to set the Desktop TVout modes (Dualhead setup tweak for now I think). Bumped version to 0.55. Enjoy...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14327 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-06 15:56:53 +00:00
Jérôme Duval c495f81aab added some debug PRINT
inited fChars to null


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-06 15:43:21 +00:00
Adi Oanca 88ef6ce8fe - fixed build for NEW_CLIPPING define
- implemented RootLayer::SetActive(WinBorder*).
- added support for BWindow::Activate(). I realize now that I only added support for Activate(true). :-D In the next days I will add support for Activate(false).
- removed a few cases from ServerWindow as they are not needed.
- addapted WinBorder::MouseDown() to work with the new RootLayer::SetActive() implementation. 

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-06 10:45:46 +00:00
Rudolf Cornelissen 0b36eea44d completed experimental TVout support for singlehead cards using BT868/869, Conexant CX25870/CX25871 chips. As setups with laptop or DVI panels will probably mess up, it's still disabled apart from enabling a testimage. Now starting actual testing..
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14317 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-06 10:12:56 +00:00
Axel Dörfler c8c6353050 Added gawk, sed, and mimeset to the image.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14316 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-06 09:53:11 +00:00
Axel Dörfler c374092428 The rule_based_prefetcher is now actually usable - had those lying on my hard drive a while longer...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14315 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-06 09:51:41 +00:00
Axel Dörfler 9a63d90397 Added kernel private VFS functions vfs_entry_ref_to_vnode() and vfs_vnode_to_node_ref().
Minor cleanup of vfs.h.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14314 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-06 09:26:27 +00:00
Axel Dörfler 681779f1c8 Our close-on-exec flag handling was broken: it's supposed to be specified per slot, not
per file descriptor (a descriptor can be shared among several slots). There is now a
second table in the io_context structure that contains that information in a bitmap.
There are now two new (private) functions to control the close-on-exec flag, fd_close_on_exec(),
and fd_set_close_on_exec().
F_DUPFD, dup(), and dup2() are supposed to clear the close-on-exec flag on the duplicated
slot - this fixes bug #57 (no output after a redirect of a shell builtin).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14313 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-06 09:02:59 +00:00
Axel Dörfler e90c3fec10 dup2() didn't close the evicted file descriptor (ie. call its close hook) - it just
removed it.
Added comment why there is an explicit dup2() at all.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14312 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-06 08:55:19 +00:00
Axel Dörfler 1670b8f596 num_used_fds counting was broken for dup2() and vfs_new_io_context() when it was
used with a parent context.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14311 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-06 08:53:17 +00:00
Axel Dörfler e8d4a05d8b Renamed the "iocontext" command to "io_context" to match the structure name.
It now also accepts a team ID and will then dump its io_context.
Accidently mixed used/max FD counter.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14310 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-06 08:47:03 +00:00
Axel Dörfler 9e3ebf4033 exit_thread() no longer sends a signal when it's called from a kernel thread - instead,
it will exit directly to have the same behaviour as in user space (where it doesn't
return to the caller, since signals are handled before returning to user space).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14309 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-06 08:43:10 +00:00
Axel Dörfler 8d3256a4ad The "thread" debugger command now also accepts an address for the thread structure.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14308 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-06 08:40:35 +00:00
Axel Dörfler 7dc1c65f2f Improved "team" debugger command: it will no longer crash on the kernel team, it
will no longer use vm_get_kernel_aspace() (which acquired a semaphore) and it now
accepts decimal team IDs as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14307 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-06 08:36:37 +00:00
Rudolf Cornelissen bd41908394 completed preliminary enable TVout function, started on disable TVout function (in progress)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14306 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-05 17:34:19 +00:00
Axel Dörfler 759a38d144 load_kernel_add_on() leaked FDs in case the image was already loaded.
And that was causing bug #50 (which is fixed now).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14305 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-05 16:41:04 +00:00
Axel Dörfler 333735e881 Added a new debugger command "iocontext" that prints out info about the kernel's
I/O context (or a specified one) including its FDs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14304 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-05 16:39:45 +00:00
Axel Dörfler 08da6fccdd Introduced a sane concept of ownership for the team_args structure: now load_image_etc()
and exec_team() have an additional "kernel" argument and will copy the arguments
themselves (or rather, delegate that to create_team_arg()).
When team_create_thread_start() is called, it will take over ownership and is
responsible for deleting it - this also fixed a memory leak in case the user
stack area couldn't be created.
Also changed comment after exit_thread(): since this call only delivers a signal, the
code after it will still get executed.
This fixes the crashing symptom of bug #50.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14303 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-05 15:32:48 +00:00
Rudolf Cornelissen 22a0d15b16 adding start_tvout and stop_tvout routines: in progress. Apart from the testimage no TVout yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14301 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-04 15:33:18 +00:00
Rudolf Cornelissen 463f0fab63 small comments update.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14300 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-04 12:16:48 +00:00
Rudolf Cornelissen da3804ee61 completed 4 Desktop TVout modelines. Also established that the comments in the crtc modesetting functions were not applicable (about 'offsets' on timings before programming in respective registers.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14299 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-04 11:59:28 +00:00
Rudolf Cornelissen bd7693f272 adding more crtc modelines for desktop TVout (in progress)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14298 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-04 10:02:53 +00:00
Rudolf Cornelissen 85406c4d2a added display_mode.timing 'tweaking' for the 4 TVout video modes. The 4 desktop modes have yet to be added, (so) not yet finished.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14297 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-03 20:01:11 +00:00
Stephan Aßmus 8061ab77fa * fixed a bug with setting the transparent color
* changed behaviour when searching for the
  index of the specified to be transparent color:
  if there is no direct hit, the closest match
  is found and adjusted to the specified color,
  so that the transparency always works out


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14296 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-02 23:40:21 +00:00
Adi Oanca f59edb4bf0 - removed RootLayer::WinBorderAt(). Use Layer::LayerAt() instead.
- Added a skeleton for RootLayer::SetActive()
- removed Workspace::SetFocus(). Use AttemptToSetFocus() instead.
- properly implemented Workspace::_SetFocus().
- removed Workspace::fActiveItem - it had/has no use.
- fixed a problem with Decorator buttons being drawn improperly when
B_MOUSE_UP was generated outside their area.
- added 2 TODOs to later fix Decorator's (re)drawing path.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14295 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-02 21:55:45 +00:00
Stephan Aßmus 3647107a2e * reworked GUI to have better layout and be more font-sensitive
* added option to specify max number of colors
* improved palette creation (quite an improvement with my test images,
	but a better color reduction algorithm surely exist)
* more to come with regards to transparency (for examply, being able to
	specify the transparent index seems like complete bogus to me)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14294 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-02 16:59:06 +00:00
Rudolf Cornelissen 6e7679be67 updated proposemode aspect check stuff to forego checking in the case of a tvout capable card, for a TVout compatible mode if TVout is indeed requested. In other words: fixed NTSC DVD mode. (note btw that aspect and modeline stuff should be / will be resetup one day when DDC/EDID is finally used: but before that can be done, I2C setup should be clear. setting up TVout will help out in this area :)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14293 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-02 15:45:48 +00:00
Rudolf Cornelissen c5fe5f2d06 fixed PAL VCD modesetting validation: actual resolution is 768x576 for 800x600 overscanning mode. Testing with cmd line app 'vidscreen' BTW (matrox driver site, 'tools'). Note, still got to fix NTSC DVD modesetting: aspect check needs to be disabled for TVout..
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14292 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-02 08:27:07 +00:00
Rudolf Cornelissen efe9c7a607 added TVencoder activation code for mode asked for by user (if supported). Currently a testimage (vertical colorbars) will be displayed on the TVset if a TVmode is selected, while VGA keeps working normally. Singlehead cards only for now, dualhead don't execute this yet. Warning: not yet actually tested (in this driver ;-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14291 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-01 19:28:19 +00:00
Jérôme Duval 87fd7c1b16 fix link
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14290 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-01 16:14:11 +00:00
Rudolf Cornelissen b245971503 updated validation for TVflags in display_mode to reflect nvidia driver capabilities (instead of matrox driver ones). Going for singlehead card tests first.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14289 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-01 10:06:58 +00:00
Adi Oanca bbf8c95b5a * added Layer/WinBorder::WorkspaceChanged() hook.
* make RootLayer::SetWinBorderWorkspaces() work under NEW_INPUT_HANDLING
define. Soon I think I'll move this method under WinBorder's hood.
* RootLayer::change_winBorder_feel() is also working under this define

** NEW_INPUT_HANDLING define is active.
   If someone discovers something bad happening after this checkin please
notify me on app_server list. If in one week no major problems appear,
I'll remove this define and the old code.
   Thanks.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14288 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-01 10:03:43 +00:00
Jérôme Duval a7c2985541 takes string width into account
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14287 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-09-30 22:32:45 +00:00
Jérôme Duval 27c7bf1ac1 fix the build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14286 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-09-30 22:32:01 +00:00
Rudolf Cornelissen 9a7218c5e5 added more logging for brooktree TVout.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14285 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-09-30 19:51:07 +00:00
Rudolf Cornelissen 21f6ecabcb added more brooktree/conexant modesetting stuff. still not in use.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-09-30 18:21:19 +00:00
Jérôme Duval 633dee064e fix packages view, added a copy engine class
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14283 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-09-30 14:58:05 +00:00
Rudolf Cornelissen aa6505c068 removed all matrox maven TVout register and macro defines. now oly nVidia defines are left here.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14281 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-09-29 15:37:48 +00:00
Rudolf Cornelissen 77497c49bf removed old matrox MAVEN tvout code. Added fixed 'modelines' for Brooktree/conexant TVout: PAL and NTSC 640x480 and 800x600 (desktop modes), PAL 720x576 and NTSC 720x480 overscanning modes (DVD playback), plus PAL 800x600 and NTSC 640x480 overscanning modes (VCD/MPEG1 playback). All from BeTVOut, not yet in use though (no TVout yet).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14280 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-09-29 15:36:49 +00:00
Rudolf Cornelissen 0ece490589 added i2C readbuf and writebuf routines, added extra check on supported BT/CX encoder type.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14279 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-09-29 14:40:48 +00:00
Rudolf Cornelissen 0d0b03fd3a updated docs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14278 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-09-29 11:47:48 +00:00
Rudolf Cornelissen 0d492d2ff8 finalized virtualscreen panning control granularity constraints for VIA HW. Overlay is now completed BTW. Bumped version to 0.16. Next up: 2D acceleration. Hopefully :)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14277 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-09-29 11:47:11 +00:00
Rudolf Cornelissen 217024e94c added virtualscreen support: overlay output window gets corrected when viewport in virtualscreen is moved.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14276 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-09-29 10:04:18 +00:00
Rudolf Cornelissen 980cfe5327 tuned VIA overlay buffer pitch/width granularity constraints: VIA handles downto 8 pixels (checked on CLE266)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14275 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-09-29 09:28:11 +00:00
Rudolf Cornelissen c21b10bf4c quickly tried chromakeying as alternative to colorkeying, but that doesn't seem a solution. So, overlay tweak alert for CMAP8 still stands. Looks like 'BeOS' needs to send a colorpalette index to the driver for colorkeying alongside the currently used way (sending literal color).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14274 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-09-29 08:02:06 +00:00
Axel Dörfler eb581c1455 Fixed the mkbfs build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14273 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-09-29 01:27:39 +00:00