Commit Graph

30679 Commits

Author SHA1 Message Date
Stephan Aßmus
23190db721 Sorry, reverted r32185, as it was complete bogus and didn't even compile (got
confused about what I already compiled here). The sample format was already
specified.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32186 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-07 13:54:18 +00:00
Stephan Aßmus
e48452878e * In the AVCodecDecoder, use the audio format of the original input format,
but specify it to 16bits/sample if it's still a wildcard. Make sure to
  allocate the scrub buffer with the correct sample size (was hardcoded to 2
  bytes per sample).
* In the AVFormatReader, specify the sample format for B_MEDIA_ENCODED_AUDIO.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32185 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-07 13:18:26 +00:00
Axel Dörfler
f7a6506e0f * Replaced all "status < B_OK" with != B_OK - this should make the VFS layer
more robust against broken (userland) file systems.
* 80 character column cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32184 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-07 12:29:17 +00:00
Axel Dörfler
b90e7304ed * Made the changes in r30278 depending on the USE_ACCELERATION define, ie. you
can now easily turn it on again (see #2769).
* Also added OFFSCREEN_BACK_BUFFER define to enable the offscreen back buffer
  trick.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32183 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-07 11:27:30 +00:00
Axel Dörfler
2d332a4228 * This lets the app_server respect the boot loader's fail-safe video mode
setting again. It still allows you to change the mode afterwards, though.
* This fixes bug #3419.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32182 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-07 11:08:31 +00:00
Axel Dörfler
f7be7fea76 * Setting the depth to 1 for VGA mode in frame_buffer_console_init() was not
a good idea; it didn't have any consequences in there, but actually broke
  the app_server's support for the VGA mode.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32181 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-07 11:07:14 +00:00
Alexandre Deckner
6d893152ea * Added Haiku3d demo to the image. Removed GLDirectMode demo as discussed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32180 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-07 10:49:09 +00:00
Axel Dörfler
1fc4cb1f27 * If the user selected color space is not available for the selected resolution,
_CheckColorMenu() now selects the closest item available - if you switch back
  the resolution to one that supports the original color space, it will be
  restored. This fixes bug #2995.
* I also reverted r24674 as I remembered why I did that in the first place
  (advertizing 24 bit modes as 32 bit), and it was a pretty stupid idea to
  solve it like this, I must admit.
* Instead, the color space menu now only shows spaces that are actually
  supported by the card at all. One could think about hiding 24 bit in case
  both 24 bit, and 32 bit are available, but I didn't do that yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32179 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-07 10:22:22 +00:00
Axel Dörfler
12194e33b7 * Added missing default initializer for the message.
* Changed BMenuField::MenuBarLayoutItem::BasePreferredSize() to return the
  min size as well, instead of a fixed 100 pixels for the width...
* More minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32177 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-07 08:52:32 +00:00
Axel Dörfler
f99cba9e57 * The colors menu had "label from marked" activated, but then replaced its
label, causing bug #4193.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32176 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-07 08:41:17 +00:00
Axel Dörfler
8b2b787b62 * Fixed build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32175 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-07 08:36:13 +00:00
Axel Dörfler
50f8cd14bb * Cleanup, no functional change.
* Remove superfluous operator=() implementations.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32174 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-07 08:01:27 +00:00
Axel Dörfler
d82ea8abda * Only take the popup marker into account if fShowPopUpMarker is true.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32173 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-07 07:22:56 +00:00
Rene Gollent
01592a4057 Fix small style violation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32172 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 23:44:39 +00:00
Rene Gollent
102a66c3f6 BMenuField's private menu bar did not take into account the width of the popup indicator when computing its minimum size. Fixes ticket #3635.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32171 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 23:24:48 +00:00
Oliver Ruiz Dorantes
22d0f12de3 Netbook!=Handheld
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32169 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 18:28:38 +00:00
Rene Gollent
7e14656cf7 Patch by Blub\0: fix bfs build with DEBUG defined on gcc4.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32168 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 17:56:57 +00:00
Stefano Ceccherini
ceeeb99a7e further cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32167 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 17:05:57 +00:00
Stefano Ceccherini
bdaaeb0c37 Applied the logic in r31871 to jpeg2000 translator too. Fixes bug #4139.
Also cleaned up.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32166 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 17:05:42 +00:00
François Revol
5a9c3ff54c Alpha sort.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32165 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 16:36:32 +00:00
François Revol
68264bed26 Better give the good len.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32164 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 16:04:20 +00:00
Axel Dörfler
fc11b80c6c * Applied patch by sil2100 that basically adds a "Yes to all" button, see
ticket #4059. I fixed a few style violations, though. Thanks!
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32161 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 15:00:52 +00:00
Axel Dörfler
1a60fd72cf * Replaced the Inode::GetTree() method with a simple getter - the tree is
always created for directories since quite some time now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32158 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 11:18:26 +00:00
Axel Dörfler
134e1b04d4 * Somehow I forgot to update the parent directory's time stamps on file
creation, removal, and name changes...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32157 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 11:02:08 +00:00
Axel Dörfler
201c2842bd * The media server now clones each buffer area only once - before, you could
only add a very limited amount of buffers part of the frame buffer, for
  example, as that one is usually a very large area.
* This could prevent all sorts of media buffers to be cloned on certain
  conditions (and could also cause a MediaPlayer fallback to bitmap mode for
  no apparent reason).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32156 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 10:01:20 +00:00
Axel Dörfler
8399a7c04d * When a buffer_info is removed, its area is now actually deleted as well. This
already fixes bug #4189, although there is another bug that could cause a
  similar effect (working on that next).
* Switched from media_server local TMap to HashMap, although this is probably
  equally archaic.
* Also replaced TList with std::set for the team list.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32155 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 09:45:04 +00:00
Axel Dörfler
5174cb1f74 * Added copyless direct value accessors (via Iterator::NextValue(), and
Get()).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32154 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 09:42:34 +00:00
Axel Dörfler
696b8f43fb * Cleanup, BufferManager now aggregates the buffer map as well as its locker
instead of allocating them separately, no functional change.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32153 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 08:55:02 +00:00
Axel Dörfler
86766d6aca * handle_driver_events() kept the sDriversListLock locked over the whole
time. But since this is also locked from within the driver/directory watcher
  (with the node monitor lock held), and handle_driver_events() could cause
  node monitoring updates, the locking order could be reverted, causing a
  deadlock (I just ran into).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32152 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 08:24:23 +00:00
Philippe Houdoin
e3ba97b8aa Fixed a crash when resizing GLInfo window (or any non-BDirectWindow with GLView kid(s), for that matter).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32151 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 00:17:30 +00:00
Philippe Houdoin
c4decd80b1 Fixed hardcoded AudioProducer output name.
Stephan, Axel, could one of you report this change in clockwerk/src/shared/AudioProducer.cpp too.
Clockwerk name his audio output "MediaPlayer Sound Output", which is both confusing and, well, 
semantically wrong ;-).

BTW, for MediaPlayer being able to (re)name his output after the filename playing will be great, no?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32150 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 21:55:22 +00:00
Stefano Ceccherini
d0c308a5b6 Accidentally enabled tracing
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32148 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 21:31:17 +00:00
Stefano Ceccherini
9a95658ce0 Some cleanups. Shouldn't include any functional changes, except maybe
better cleanup on exiting.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32147 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 21:30:39 +00:00
Stefano Ceccherini
804f3b726b Reverted r21451, otherwise ParticlesII crashes after a while, if the
accelerant doesn't support moving the frame buffer.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32146 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 21:29:22 +00:00
Axel Dörfler
86a1f079e9 * Also fill out monitor_info production date from EDID info.
* Do not set serial_number if there is none.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32145 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 19:10:22 +00:00
Axel Dörfler
1a8af60548 * Now also puts the monitor's serial number and production date into the
tool tip (if available).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32144 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 19:08:36 +00:00
Ingo Weinhold
6905c8a6ee Removed superfluous check.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32143 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 18:41:21 +00:00
François Revol
bd7f3915e6 Move board/ into arch/arm/ since boards likely depend on a cpu anyway. Other archs might want to use the same structure (mipsel ?).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32142 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 17:29:55 +00:00
Axel Dörfler
13247f3a8c * This fixes VGA mode frame buffer use, no idea when this got broken. It might
be broken in the app_server now, but I haven't checked yet.
* Fixed typo in vesa.h.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32141 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 17:24:23 +00:00
Philippe Houdoin
0ac197fcfd Fixed Clockwerk gcc2/gcc4 package filenames.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32140 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 16:54:19 +00:00
Axel Dörfler
a21284874f * Rewrote BBufferGroup header.
* Cleaned up the source file, no functional change (intended).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32139 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 16:08:47 +00:00
François Revol
034ea9408b Placeholder for current GSoC targets (verdex is QEMU, overo is the real one).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32138 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 16:01:17 +00:00
François Revol
b0b9925be1 Introduce a new level of portability: boards.
Since we don't support Flattened Device Trees yet (and they don't solve all the issues), we need a place to hole board-specific config, which are different even though we use U-Boot on ARM. Things like cpu & mmu type...
U-Boot doesn't really help us there anyway, it only passes a few board infos (RAM banks & the bill), and optionally other stuff if we fake a linux kernel or netbsd loader, but still not enough. FDT support isn't available for ARM in U-Boot yet either. So for now, and likely for stuff we can't get from FDT, we'll put board-specific config there.
Unlike desktop machines were we want a single kernel per arch, we'd rather have the kernel built for a single board without having to handle detecting mmu type at boot and switching calls like I did on m68k.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32137 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 16:00:13 +00:00
Axel Dörfler
d4944a7ea2 * Cleanup, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32136 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 15:38:44 +00:00
Axel Dörfler
45ed4939f9 * area_for() now also returns the area ID for kernel areas if they are
accessible to the userland - this fixes #2405 (ie. MediaPlayer overlay now
  works).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32135 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 15:04:45 +00:00
Stephan Aßmus
4ef213ddc4 Initialize the default fonts to NULL.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32134 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 14:47:32 +00:00
Ingo Weinhold
102e196b93 Reenabled Firefox gcc 4 package.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 14:28:58 +00:00
Ingo Weinhold
a826679822 * Only build the gcc 2 compatibility symbols with gcc 2.
* Added gcc 4 _ReservedView11() compatibility symbol.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32132 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 14:26:47 +00:00
Axel Dörfler
b7d46b7558 * Also the indirect array indices can point to a sparse point if they are 0;
this fixes problems with large files with sparse ranges (for example, Haiku
  images).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32131 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 14:23:13 +00:00
Axel Dörfler
cfd22919f2 * FileMap::Translate() did not choke on negative offsets, and _Cache() does not
necessarily return an error in this case.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32129 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 13:05:58 +00:00