Commit Graph

17543 Commits

Author SHA1 Message Date
Marcus Overhagen
687e925395 Removed private functions _long_to_color_() and _color_to_long_(), there
shouldnt be any application that uses them, as they were not in headers.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17552 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 20:43:39 +00:00
Marcus Overhagen
bb15b0769b increased thread priorities
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17551 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 20:37:43 +00:00
Axel Dörfler
032674909f Some more PPC fixes - initialization still doesn't run through, though.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17550 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 20:22:48 +00:00
Marcus Overhagen
30d242965d fixed strange usage of rgb_color
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17549 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 20:20:17 +00:00
Marcus Overhagen
4cf88b82c3 set alpha value of default low/view color to 255
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17548 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 20:17:35 +00:00
Marcus Overhagen
df230cb528 replaced get_uint32_color() by casting into a reference (const uint32 &)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17547 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 20:14:26 +00:00
François Revol
548cead6a1 - Handle args in the form /pathto/file[:line[:column]][:] so you can double-click
on a gcc error in the terminal, type open and right-click to edit at the buggy line. 
Discard last : form gcc errors to avoid having to type backspace. 
Works with Pe for the line at least, BeIDE doesn't seem to handle it though the 
documentations says it should. Others apps welcome to handle the be:line and be:column 
int32s on B_REFS_RECEIVED :)
- Updated copyright.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17546 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 20:10:41 +00:00
François Revol
c2be814ab5 added an Haiku-specific RLIMIT (NumOpenVnodeMONitors) (UNIMPLEMENTED yet) (we might want to renumber it),
and used that one and NOFILE to implement R5 private calls _kset_[fd|mon]_limit_()


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17545 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 19:37:40 +00:00
Axel Dörfler
239974d018 The super block is now written correctly when compiled under PPC.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17544 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 19:30:32 +00:00
Axel Dörfler
aad602196a Also check the device class and subclass IDs - this prevents the driver to recognize
an USB controller with the same ID pair as the graphics controller (Intel seems to
be running out of device IDs :-)).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17543 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 19:16:33 +00:00
Axel Dörfler
4e65a2073d The shutdown window now uses the same placement method like BAlerts.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17542 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 18:21:33 +00:00
Axel Dörfler
42c1d42429 * GCC 4 build fixes
* Some minor cleanup towards our style guide, but this could need
  much more work.
* Better error reporting in GetNextChunk() in case of an read error.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17541 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 18:08:13 +00:00
François Revol
3ad603ace4 implement sbrk() by calling hoard's version, through sbrk_hook (fct pointer was named this way in R5).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17540 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 18:04:20 +00:00
Axel Dörfler
712c1e8c39 Fixed the BMenuBar not spanning over the whole window width for MediaPlayer
and VLC (what a coincidence :)).
Would be nice if there is a better solution, though...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17539 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 16:54:32 +00:00
Axel Dörfler
c8e7fbbfa6 Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17538 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 16:50:06 +00:00
Axel Dörfler
dc052c4305 The alert window position code now also takes an eventual screen offset into account.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17537 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 16:49:24 +00:00
Axel Dörfler
517dfdf48b The cache did not correctly retrieve the file map when the file was fragmented
into more than MAX_FILE_IO_VECS pieces. This could have very weird consequences
like overwriting data outside the file (but on that same partition only).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17536 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 16:36:20 +00:00
Jérôme Duval
c003d47a54 added some more tests
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17535 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 16:14:00 +00:00
Jérôme Duval
b82aa52811 avoids analog clock flickering (ie on VPC): AnalogClock view is now of the bitmap size
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 16:12:50 +00:00
Marcus Overhagen
453f642e2e Rewrote audio decoding to provide timing information
that is used to sync with video.
Separated audio decoding and playing into two threads, 
the same applies to video decoding and playback.
This was inspired from code written by Stephan.
Added video decoding and display, added play/pause/stop.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 15:56:10 +00:00
Philippe Houdoin
d6b1b60ed4 Try to be smarter regarding $(TARGET_ARCH) dependent symbols when building libGL.so.
Untested for non x86 architecture. Axel, could you check if it now build fine under PPC?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17532 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 15:48:12 +00:00
Jérôme Duval
568e0bdbf4 write errors to stderr
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17531 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 10:36:00 +00:00
Jérôme Duval
0e726a5684 fixed message delivering
record control in media preferences for auich is now working correctly


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17530 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 10:35:01 +00:00
Jérôme Duval
52427a4b3a fixed build on dano
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17529 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 10:31:30 +00:00
Jérôme Duval
f506eea587 NULL signal should be handled as others, except it has no effect
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17528 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 10:30:32 +00:00
Stephan Aßmus
a7f936aa14 * cleanup
* fixed SetViewColor() - I have no idea why it compiled before
* changed SetHidden() to make less of a difference between
  the top view and other views, the clipping is now always
  rebuilt


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17527 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 10:05:17 +00:00
Stephan Aßmus
8dc6e23650 cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17526 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 10:03:24 +00:00
Stephan Aßmus
bd5ed534cf a fix to the file cache (done by Axel), that prevents a crash when
reading the file map of certain files (hope I got that more or less
right)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17525 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 09:59:07 +00:00
Stephan Aßmus
a0c5ca01a5 using Draw(); Flush(); doesn't get a clean background to draw on, other controls should be fixed as well... this should fix the text becomming thick when repeatedly clicking a check box
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17524 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 09:55:39 +00:00
Stephan Aßmus
bc685a6444 set_rgb_color() seemed useless
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17523 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 09:54:24 +00:00
Stephan Aßmus
52bc1e501f no need to delete fSelectMessage in the destructor after using SetSelectionMessage(NULL);
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17522 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 09:53:46 +00:00
Stephan Aßmus
431da4dd4b AddItem(..., frame) used AddItem(..., index) which
triggered a debugger call -> refactoring and cleanup


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17521 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 09:53:08 +00:00
Philippe Houdoin
d3d8b26997 First step in building again the userland test stack
environment: actually build it! :-)
Next step: fix the Jamfile to create the symlink to userland "obos_network" add-ons.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17520 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 09:25:35 +00:00
Stefano Ceccherini
b0f89f914d Fixed the problem mentioned in bug 484, some cleanups, implemented
BMenu::InvokeItem() more correctly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17519 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-20 22:36:38 +00:00
Stefano Ceccherini
2b73985eb0 renamed class members to fit our guidelines (more or less)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17518 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-20 22:10:00 +00:00
DarkWyrm
57c361471e Started work on Chapter 3, which deals with general OS conventions. Still rough stuff.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17517 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-20 01:34:46 +00:00
DarkWyrm
348f3a067c Added initial rough chapters for some UI guidelines. Docbook formatting will come later.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17516 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-20 00:48:04 +00:00
Axel Dörfler
b0bc48fbd3 Some more GCC 4 and PPC fixes.
* Mesa doesn't compile yet, as some PPC specific stuff seems to be
  missing, Philippe?
* Cortex and some other stuff has been marked x86-only, although
  it's more of a "GCC 2.95.3"-only.
* I'm not sure if it's a bug in GCC 4, or if that's what the C
  standard demands, but sizeof(some_type::some_field) is not
  valid anymore :-/


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17515 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-19 15:52:21 +00:00
Axel Dörfler
8abee6571a libroot.so now builds on PPC again.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17514 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-19 13:11:34 +00:00
Axel Dörfler
4ea1753e0a Since we're now using GCC on PPC as well, there is no reason not
to include GCC's header file here.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17513 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-19 13:07:53 +00:00
Axel Dörfler
e2793c5db4 Fixed warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17512 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-19 13:05:56 +00:00
Stephan Aßmus
75b7acdac8 * commented out the code to invalidate a view when
it is added our removed to another view, this is
  taken care of in View.cpp until we find something
  better


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-19 09:55:56 +00:00
Stephan Aßmus
f5643345cd added an async version of MarkContentDirty(), which would clear the backgrounds in case an expose event had already happened earlier, however, it turned out I didn't need it yet, see next commit
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17510 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-19 09:53:01 +00:00
Stephan Aßmus
3e58cde6dc minor clean up
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17509 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-19 09:51:38 +00:00
Stephan Aßmus
5add574bc9 * invalidate in _Attach and _Detach - I still hope to
find a better solution, at least it fixes the problem
  that when views are added to already showing windows,
  and those views set their view color in
  AttachedToWindow(), the app_server will have already
  cleared the background with the previous view color
  (for example white check boxes problem in Tracker
   Settings window)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17508 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-19 09:45:01 +00:00
Stephan Aßmus
ae749d90ce * updates fLastBounds in AttachedToWindow
* don't do the checks for invalid rect and Window(),
  because Invalidate() does this for you


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17507 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-19 09:43:06 +00:00
Stephan Aßmus
2a3de9bc1d * use new (nothrow) when checking the returned pointer
* better handling of errors in various versions of AddItem()


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17506 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-19 09:39:54 +00:00
Axel Dörfler
4b25b1b99a common_lock_node() now pretends to be successful - this should fix Vision not being
able to store its settings for now (bug #589).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17505 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-19 08:54:50 +00:00
Axel Dörfler
3652a43917 * Accidently broke overlay (but BerliOS didn't let me commit yesterday :-/), since
ViewLayer::SetViewBitmap() did not show the overlay, only updated it.
* Simplified overlay handling a bit, removed Overlay::Show(), and IsVisible(),
  replaced Update() by Configure().
* Made similar changes in the HWInterface as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17504 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-19 08:42:46 +00:00
Axel Dörfler
cdd7c1fb44 This fixes that a window appears to lose focus when switching from borderless
to bordered window (ie. VLC when switching back from full screen mode).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17503 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-19 08:40:07 +00:00