Commit Graph

42859 Commits

Author SHA1 Message Date
Adrien Destugues
8bbdad1487 FormatManager: actually return the singleton instance.
This should work better.
2014-04-04 12:42:14 +02:00
Jonathan Schleifer
6a2fd3a50e Add __dso_handle to bootloader and kernel
Clang references these when building for x86_64.
2014-04-03 19:19:33 +02:00
John Scipione
f5c284eeed Style fixes to BTextView 2014-04-02 19:38:25 -04:00
Adrien Destugues
638510600c Plugin loading: style fixes.
* Fix style issues pointed by stippi. Thanks!
* Rework the FormatManager instanciation to be thread safe.
2014-04-02 14:05:11 +02:00
Adrien Destugues
bf3b475c38 Urpdate AddOnManager and FormatManager for Media Kit
* These classes were moved from Media Server, making the use of ports
and messages to communicate with the app irrelevant.
* Split in a separate commit to help git keep track of moved files.

Fixes #4893.
2014-04-02 09:56:34 +02:00
Adrien Destugues
2feaa37f24 Move media plug-in support to application side.
The media server tried to use node monitoring to dynamically add and
remove plug-ins, but it isn't that useful:
* When a plug-in is added, applications would have to query the media
server to get an up to date list of available formats. For example
MediaConvert populates its format menus on startup.
* When removing a plugin, if an app already had it loaded, there is not
much that can be done to keep it working.
* The list of plugins was not sorted by directories (user vs system
add-ons), so the directories were re-scanned to make sure user add-ons
were returned first, rendering the node monitoring less interesting.

Now, the format handling is done by each application. The node
monitoring is removed, instead the apps will scan the plugin directory
when first using the media kit classes. Restarting the application is
needed to update the media formats list.
2014-04-02 09:56:32 +02:00
John Scipione
1c69e1c306 Fix button label position
This reverts a portion of hrev46580 concerning placement of a label on a button.
The label was draw too low on the button in some cases, notably in Keymap.
Restoring the old code for the icon-less case fixes the problem.

There still may be a problem drawing labels on buttons with icons, but, the code
should behave the same as it did in hrev46580 for that case, which is when
buttons with icons was introduced.
2014-04-01 17:19:00 -04:00
John Scipione
8fbf8d56f6 Time prefs: Enable add button if server name valid
* Add button is disabled initially (as the server name is blank)
* Use B_FAILURE_COLOR when server name is invalid instead of hardcoding red
* Some code refactoring
* Some style fixes
2014-03-31 18:57:46 -04:00
John Scipione
62b45ce190 Time prefs: Disable remove button if list empty 2014-03-31 18:46:12 -04:00
Adrien Destugues
48058f7bc9 Media_server: use find_paths_etc.
* Replace code to find the plug-ins with the new APIs.
* Prepare for hybrid-aware code (but we need to use the app
    architecture, not the media_server one)
2014-03-31 17:39:35 +02:00
Adrien Destugues
d71e18fef4 Build media plugins for the secondary arch.
These are used when an app uses BMediaFile/BMediaTrack, which leads to
the plug-ins being instanciated on the application side.

* Fixes one more part of #10049 (media add-ons are still missing).
* Will probably not solve any real-world issue because of #4893.
2014-03-31 15:32:31 +02:00
Adrien Destugues
943b310c90 Data URLs: fix size computation.
The decoded data is 3/4 the size of base64 encoded, not 4/3.
2014-03-31 09:59:12 +02:00
Jessica Hamilton
575984d2e5 MediaConverter: Filter out non-writable media file formats. Fixes #10724
* With the muxer & demuxer tables merged in hrev47063, the
   list of output formats included media file formats that
   weren't flagged as writable

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2014-03-31 08:15:00 +02:00
Stephan Aßmus
a87c4748e5 app_server: Restore previous rounding
46b39e8378 contained a change to the
rounding for non-subpixel-precise drawing. This changes it back
from using round() to casting to int32. This also reverts a change
to StrokeLine() which meant that lines on integer pixels appeared
at the same location regardless of using B_SUBPIXEL_PRECISE or not.
On further thought, this doesn't make any sense, since it means
to treat the meaning of coordinates different for stroking and
filling. This fixes WonderBrush's brush tip preview, but breaks
Gobe Productive's caret rendering for zooms smaller than 150%.
The change to the rounding fixes #10690.
2014-03-30 22:28:14 +02:00
Axel Dörfler
0acae24ee7 Added simple Alert test application. 2014-03-29 23:11:44 +01:00
Jonathan Schleifer
6c95865236 Replace a few equ with %define to make nasm happy
Interestingly, it only complained about some of them. Changing them all
to %define though, as equ means it should try to evaluate it once, which
of course it can't really if those are ebp+CONSTANT.

Didn't catch those since I wasn't building gcc2h.
Thanks to jessicah for reporting and testing the fix!
2014-03-29 05:07:54 +01:00
Rene Gollent
133af3f5e1 HaikuDepot: Fix x86 build. 2014-03-28 22:12:06 -04:00
Jonathan Schleifer
d6f8092732 Sorry, my last commit was incomplete 2014-03-29 02:29:52 +01:00
Stephan Aßmus
5bd5f161e8 HaikuDepot: Populate package icons from web app.
* Transformed ConnectionTest into WebAppInterface
 * Added methods to Model to trigger the population of all packages
   with additional information that is needed in the list view.
 * This launches a thread which tries to retrieve icons for all known
   packages from depot.haiku-os.org. This is uncached and very slow. I
   guess it could even be fast enough with a change to the protocol where
   icons are not retrieved one at a time.
2014-03-28 23:49:29 +01:00
Stephan Aßmus
b34f1a8b11 HaikuDepot: Refactored setting title and icon in listview...
... so that it is also done when a package state change notification
is received that has the icon bit set.
2014-03-28 23:49:28 +01:00
Stephan Aßmus
22949ba2ef HaikuDepot: SharedBitmap: Added loading from buffers.
Refactored loading from a buffer when loading from resources and
 re-used that for instantiating a SharedBitmap from a BMallocIO.
2014-03-28 23:49:27 +01:00
Jonathan Schleifer
a04a520b0d Switch back from yasm to nasm
These days, nasm supports more instructions than yasm. Additionally, it
offers a disassembler.
2014-03-28 23:10:24 +01:00
Adrien Destugues
626d341c24 ffmpeg media plugin: merge muxer and demuxer tables
* The media_file_format struct has B_READABLE and B_WRITABLE flags,
allowing us to tell which formats we support decoding and encoding
* This allows application to query for the supported decoding formats.
* Also adjust some of the MIME types to match what's actually used (eg.
in HTML5 audio).

This makes html5test.com detect which formats we declare we can decode.
2014-03-28 11:47:22 +01:00
Jonathan Schleifer
4626c49e32 desklink: Fix %ld being used instead of B_PRId32
Also enables -Werror.
2014-03-27 20:36:39 +01:00
Stephan Aßmus
4846299ab9 HaikuDepot: Test some web app features
* Invoke "getPkg" JSON API, doesn't work yet.
 * Download a package icon in HVIF, works nicely.
2014-03-26 23:02:48 +01:00
John Scipione
8d6d2daa3f Time: Remove superfluous MakeEmpty()
Thanks AnEvilYak
2014-03-26 17:51:14 -04:00
John Scipione
aa8033905a Time: Fix memory leak.
BListView::RemoveItem() doesn't delete the item, it just removes it
from the list. We have to delete the item to free the memory it
consumes ourselves.
2014-03-26 17:34:48 -04:00
John Scipione
14d7522197 Time: Style fixes to NetworkTimeView 2014-03-26 17:21:00 -04:00
Dariusz Knociński
39a1e74b08 Time Preferences crashes with empty selection
Application "Time" crashes when you push "Remove" button without any
selection on list of network time servers.

Fixes #10716

Please use git format-patch to create your patches in the future so that
the author information is preserved.

Signed-off-by: John Scipione <jscipione@gmail.com>
2014-03-26 16:56:49 -04:00
Jérôme Duval
aafc3386ef boot packagefs: Fix header path in zlib dependency
Thanks to Ingo for pointing at this better fix.
2014-03-26 19:38:30 +01:00
Axel Dörfler
d941d6bac3 Minor cleanup. 2014-03-25 23:36:21 +01:00
John Scipione
fc00fd8d91 build fix try number 2
Process Controller needs private shared headers for StringForSize.h
2014-03-25 15:16:13 -04:00
John Scipione
30dd4e6f70 fix build, update private headers
need to inform these apps that the location of about window has changed,
I must have had stale objects that made it appear to work initially.
2014-03-25 14:46:59 -04:00
John Scipione
9ce450b9c2 AboutWindow: Move to Interface Kit (still private) 2014-03-25 14:17:19 -04:00
John Scipione
78877e7200 AboutWindow: Add FBC padding 2014-03-25 14:07:46 -04:00
John Scipione
293d80be6f BAboutWindow: style fixes
* mostly whitespace fixes
* reorder methods
2014-03-25 14:07:44 -04:00
John Scipione
71e3210d35 AboutWindow: Right-align close button 2014-03-25 13:38:59 -04:00
John Scipione
f188f5ccfc AboutWindow: Simplify layout (de-ident)
There's no functional change here but this eliminates a redundant group.
2014-03-25 13:38:08 -04:00
John Scipione
924f8e5344 AboutWindow: Make FromSignature methods private 2014-03-25 13:37:01 -04:00
Stephan Aßmus
7f0d550a7c HaikuDepot: Forgot to add the new files. 2014-03-24 23:37:40 +01:00
Stephan Aßmus
f9ed97eaee HaikuDepot: Test app for haiku-depot-web connection
* Just a playground for getting my feet wet with communicating
   with the web-app. For now only connects over HTTP.
2014-03-24 23:36:13 +01:00
Stephan Aßmus
b25fb3d559 Add a few extensions to transport stream MIME type 2014-03-24 23:36:04 +01:00
Axel Dörfler
d7f7bf2d89 Renamed HaikuDepot's home to haikudepot.
* This closes #10699. I mentioned that to stippi after his first commit
  of HaikuDepot, anyway :-)
2014-03-24 22:25:21 +01:00
Stephan Aßmus
39fce398ee Raised maximum vector data size from 16 KiB to 512 KiB.
* The maximum vector icon data size was a bit low. That may
   be hard to track down why a certain vector icon doesn't work,
   especially when imported from SVG...
 * Don't allocate the vector buffer on the stack anymore.
2014-03-23 21:59:58 +01:00
Jonathan Schleifer
18bac98397 Fix missing includes in libbsd
This makes it compile with -Werror.
2014-03-22 21:23:30 +01:00
Jonathan Schleifer
d665b2637e Fix compilation of WebPositive on x86_64 2014-03-22 02:33:29 +01:00
John Scipione
fd3fa9178b KeyMap: Redo modifier keys layout
... by using a group layout inside of a grid layout we can get this
to layout how we want it without having to calculate the label
widths manually.
2014-03-21 17:26:28 -04:00
Zhuowei Zhang
8512f7b056 Added a simple window to display console messages (fixes #10410)
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2014-03-21 08:47:20 +01:00
John Scipione
449d68282f KeyMap: Fix alignment of role labels
... by setting all labels to take up the width of the longest label.

Fixes #10693
2014-03-20 12:44:39 -04:00
Jérôme Duval
0b565a6f51 boot packagefs: Fix zlib dependency declaration 2014-03-19 20:19:17 +01:00
Jérôme Duval
ab1f2cd08d intel_extreme: read and loop for new interrupts. Fix #9718.
* MSI seems to trigger the need to loop: interrupts are not generated for bits
set while we process.
2014-03-18 21:43:31 +01:00
Stephan Aßmus
4fc7f247a8 HaikuDepot: Introduce new PackageState' pending'
When installing a package, it is set to pending, which removes
the Install button from the package info area. When multiple
packages are downloaded, theould all be put to pending,
right now, they will still offer to be installed, although they
are already scheduled for downloading. Requesting a package to
be installed when it is already schduled will mess things up later.
Godm, I hate this nano bug...
2014-03-18 21:02:24 +01:00
Stephan Aßmus
244796701b app_server: store and restore fill rule...
...when sending the whole view state over the link.
Also inherit the fill rule when pushing states (DrawState
copy constructor). A somewhat sloppy oversight, I must add.
2014-03-17 22:55:47 +01:00
Jonathan Schleifer
3c87457022 More B_PRId32
(I wonder why the last build worked without patching this, though.)
2014-03-17 21:51:43 +01:00
Julian Harnath
e815ef0795 DriveSetup: check if editor view exists in AbstractParametersPanel
* Base class needs to check this as well because the subclass might
  not override it (e.g. InitParametersPanel).

* Fixes crash when trying to initialize partition map. Thanks to
  jessicah for pointing this out.
2014-03-17 20:50:35 +01:00
Jessica Hamilton
181948a678 libbe_build: fix unterminated string in BEntry::set. Fixes #10686.
Signed-off-by: Stephan Aßmus <superstippi@gmx.de>
2014-03-17 18:21:39 +01:00
Pawel Dziepak
b167307526 kernel: Properly synchronize suspending new thread
After load_image() the child thread is suspended and the parent is
expected to resume it later. However, it is possible that the parent
attempts to resume its child after it has been notified that the image
had been loaded but before the child managed to suspend itself. In such
case the child would suspends itself after that wake up attempt and,
consequently will not be ever resumed.

To mitigate that problem flag Thread::going_to_suspend has been added
which helps synchronizing thread suspension and continuation in a similar
way that "traditional" thread blocking is performed. This means that
the child should behave in a following manner: set its going_to_suspend flag,
notify the parent (i.e. any thread that may want to resume it), acquire
its scheduler_lock and suspend itself if the going_to_suspend flag is set.
The parent should follow pattern: clear going_to_suspend flag of the thread
that is about to be resumed, acquire that thread scheduler_lock and enqueue
it in a run queue if it is suspended.

Thanks Oliver for reporting the bug and identifying what causes it.
2014-03-17 02:40:12 +01:00
Pawel Dziepak
d7e1e3e012 kernel/UserEvent: Make sure UserEvent object is valid during DPC
Most of the actual UserEvent work is done in DPC so that we don't have
to care about the limitations of the context in which UserEvent::Fire()
is invoked. This requires appropriate management of lifetime of UserEvent
instances to make sure that DoDPC() method is always called on a valid
object.
2014-03-17 02:40:12 +01:00
Jonathan Schleifer
998f404369 Use B_PRI* instead of PRI*
Sorry, didn't realize they're not the same on 32 bit systems.
2014-03-16 00:08:10 +01:00
Jonathan Schleifer
a10ad54c6b Fix a few %l* instead of PRI*32 2014-03-15 23:37:57 +01:00
Jonathan Schleifer
fee49d2f35 haiku3d: Fix type mismatches on x86_64 2014-03-15 23:37:56 +01:00
Axel Dörfler
634c2c68b2 HaikuDepot: added "available" filter.
* That's the only one I would ever want to see (in most cases).
* I must admit that I don't really understand why the lists are created
  and updated only for filtering, instead of just testing against the
  package state.
* However, I also have no idea, why the NotContainedInFilter does not
  work. I left it in because someone might see what I didn't, and maybe,
  if the first confusion is cleared, it might even find some use.
2014-03-12 21:49:09 +01:00
Axel Dörfler
5f448959ec HaikuDepot: Minor style cleanup. 2014-03-12 21:49:09 +01:00
Stephan Aßmus
1e625a2b08 app_server: Removed duplicate line of code...
for setting the filling rule. There are only two different rasterizers.
2014-03-11 22:11:08 +01:00
Stephan Aßmus
b74fecd7aa app_server: Update and use the fill rule in all cases.
* It was previously not used for gradient rendering.
 * It was not updated when the DrawState was set.
 * Not actually tested, yet.
2014-03-11 21:06:26 +01:00
Adrien Destugues
eb43166326 app_server & interface kit: support fill rules.
* BView gets SetFillRule/FillRule methods. The fill rule is part of the
view state.
* The B_NONZERO rule is the default. This is what we implemented before.
* The B_EVEN_ODD rule is the other common possibility for this, and
we need to support it to help WebKit to render properly.
2014-03-11 17:27:42 +01:00
Philippe Saint-Pierre
98e26ff242 Hey: more style fixes, no functionnal changes intended 2014-03-10 22:15:36 -04:00
Adrien Destugues
ba5172cccb pthread: allow NULL thread to compare equal.
- POSIX says the behavior for pthread_equal is undefined for
uninitialized arguments.
- However, gcc C++11 threads supports expects C++-compatible behavior,
that is, two uninitialized pthread_t should compare equal.

Avoids some runtime asserts in latest WebKit version.
2014-03-09 22:26:36 +01:00
Pawel Dziepak
0012ba6a87 scheduler/low_latency: Try harder to balance load
In low latency mode the scheduler would not attempt to balance load
on not heavily loaded cores unless difference in load exceeded
kLoadDifference * 2 (i.e. 40 percentage points), which does not seem
to be good enough.
2014-03-09 19:58:11 +01:00
Pawel Dziepak
a57a7a8c6d scheduler: Fix load update on idle cores
To make sure that load statistics are accurate on idle cores each time
idle thread is scheduled a timer is set to update load when current
load measurement interval elapses. However, core load is defined as the
average load during last measurement interval and idle core may be still
considered busy if it was not idle during entire measurement interval.
Since, load update timer is a one shot timer that information will not be
updated until the core becomes active again.

To mitigate that issue load update timer is set to fire after two load
measurement intervals had elapsed.
2014-03-09 19:58:11 +01:00
Pawel Dziepak
5df1ecb2ab x86_64: Relax ltr operand constraint
Any 16 bit general puprose register can be a ltr operand, no need
to force AX.
2014-03-09 19:58:10 +01:00
Pawel Dziepak
1700e825b1 scheduler: Always protect gCore[High]LoadHeap with spinlock
Should fix #10628. If there is a race condition with a writer getting
minimum or maximum from double ended heap may incorrectly result NULL.
Which is not expected in the most of the thread migration logic. Apart
from that, because of the race condition heap state may be observed as
inconsistent thus failing assertions.
ended heap
2014-03-09 19:58:10 +01:00
Rene Gollent
198fd05030 Debugger: Handle DW_AT_signature.
- Per DWARF4's specification, if a type's complete definition is
  contained in a .debug_types unit, it should be referenced via the
  DW_AT_signature attribute. 4.8 now actually does this rather than
  setting e.g. DW_AT_attribute_origin to a signature ref, and
  consequently we weren't finding said reference any more.

Gets .debug_types section support working again.
2014-03-09 10:10:34 -04:00
Rene Gollent
0da0db4da0 Debugger: Partly rework hrev46696.
- Various other places in Debugger expect the highpc attribute to be
  an address rather than an offset. As such, resolve it to one when
  setting the attribute in the corresponding DIE so the resolved value
  is available everywhere. Fixes variable scopes not being computed
  properly, and consequently the missing variables mentioned in the
  previous commit.

This gets things working properly again under gcc4.8.
2014-03-08 23:00:51 -05:00
Rene Gollent
3414d0b64d Debugger: Fix program counter handling issue.
- For DWARF4, lowpc/highpc can be specified as constants in addition
  to addresses. Furthermore, they can also be specified such that highpc
  is a relative offset from lowpc rather than an absolute address. We
  weren't handling this case, which gcc4.8 is now using when emitting
  version 4 debug information. Fixes another part of #10659.

There still remains a problem with regards to class/structure variables not
showing up in the local variables view.
2014-03-08 22:40:33 -05:00
Murai Takashi
982b4e9809 Fix mismatching allocation and deallocation
Fixes ticket #10374

Signed-off-by: Philippe Saint-Pierre <stpere@gmail.com>
2014-03-08 20:29:53 -05:00
Julian Harnath
119bf0013c Fix empty parameter dialog in DriveSetup
* When the add-on provides no parameter editor, still add the set of
  of default controls instead of just bailing out of the Init()
  method.

* Before, DriveSetup never added the default controls in such cases
  and simply showed an empty window. This happened when e.g. trying
  to create a new partition inside an extended partition (because
  ExtendedPartitionAddOn provides no parameter editor).

* Fixes #10569
2014-03-08 23:27:11 +01:00
John Scipione
5d98ee1e4d Revert "BScrollView: Increase small scroll step size from 1 to 3"
This reverts commit bdcfc07617.
2014-03-08 15:18:35 -05:00
Philippe Saint-Pierre
1166849963 Hey: use delete[] instead of free (CID #990947 and CID #990948) 2014-03-08 13:34:44 -05:00
Philippe Saint-Pierre
6fef592d6b Hey: Style fixes, code clean up
No functional changes intended
2014-03-08 13:31:29 -05:00
Rene Gollent
c9eb4468ca Debugger: Add handling for rvalue reference type entries.
Fixes part of #10659.
2014-03-08 12:44:46 -05:00
Rene Gollent
84e7206b05 Style fix. 2014-03-08 09:46:13 -05:00
Rene Gollent
b7282c5f2e Fix #10610.
Added missing initializer for fContext in PackageInfoErrorListener whose
absence was leading to crashes when generating the error string.
2014-03-08 09:44:13 -05:00
Julian Harnath
b3892782a6 Look at the internal encoder to pick the link
* When determining the output link, look at the internal encoder in
  the transmitter setup.

* Fixes getting no picture on digital output of certain systems.
2014-03-08 10:47:14 +01:00
John Scipione
0a2382e373 ShowImage: Scroll horizontally with control
...instead of command.

See http://www.freelists.org/post/haiku-commits/haiku-hrev46304-srckitsinterface,18
2014-03-07 19:11:48 -05:00
John Scipione
a6213356bc BView: scroll horizontally when holding control
... instead of vertically. This actually swaps horizontal and vertical
so if you have a mouse with a fancy 2-axis scroll ball it will swap
the x and y coordinates. (untested)
2014-03-07 19:11:46 -05:00
John Scipione
ab5c74422e BView: ScrollWithMouseWheelDelta return status code 2014-03-07 19:11:44 -05:00
John Scipione
b2404e2a39 BView: Check scroll delta isn't 0 2014-03-07 19:11:43 -05:00
John Scipione
5b6c94c591 ShowImage: Style fixes related to scrolling 2014-03-07 19:11:41 -05:00
John Scipione
b9f48ef8f6 WebPositive: style fixes related to scrolling
rename dy to deltaY
2014-03-07 19:11:39 -05:00
John Scipione
bdcfc07617 BScrollView: Increase small scroll step size from 1 to 3
... and then don't multiply by 3 in BView
2014-03-07 19:11:37 -05:00
John Scipione
c4337a4324 BView: style fixes related to mouse scrolling 2014-03-07 19:11:35 -05:00
John Scipione
b7929c0574 BScrollBar: style fixes, update copyright header 2014-03-07 19:11:33 -05:00
John Scipione
86bdb1b69d Style fixes to BStringItem 2014-03-07 13:55:43 -05:00
John Scipione
e3e82c7972 GIFTranslator: Increment settings refcount
So that the settings object won't be destroyed when released on the
the view destructor.

Fixes #10646
2014-03-06 19:19:04 -05:00
John Scipione
b365777b74 Add curly braces, int created 2014-03-06 19:07:58 -05:00
John Scipione
89e849e326 GIFTranslator: Style, alphbetize 2014-03-06 18:40:04 -05:00
John Scipione
138c12e0a4 GIFTranslator: rename msgr to messsenger
put BView::AllAttached() last (does nothing)
2014-03-06 18:39:19 -05:00
John Scipione
7bad8fc1f6 GIFTranslator: accidentially deleted this twice 2014-03-06 18:37:32 -05:00
John Scipione
2433b9e64f Error if Write less than expected 2014-03-06 18:19:21 -05:00
John Scipione
9592cbe5d8 GIFTranslator: Return false if read fails 2014-03-06 17:18:44 -05:00
John Scipione
1fe1074e8d GIFTranslator: Line strings up visually 2014-03-06 17:18:43 -05:00
John Scipione
5d89b2f16a GIFTranslator: Layout GIFView better
http://25.media.tumblr.com/9aa37387e4240aa5828d34b4dc7163af/tumblr_n20583ipj11r0f0hfo1_500.png

Also delete controls in destructor to not leak memory
2014-03-06 17:18:42 -05:00
John Scipione
2d612ef7ae GIFTranslator: Whitespace style fixes
Also remove break in last case.
2014-03-06 16:50:30 -05:00
John Scipione
9d41bc18bb GIFTranslator: Combine nested if statements
...into single conditional
2014-03-06 16:50:29 -05:00
John Scipione
78bfaa98e1 GIFTranslator: try hard to not throw an exception
... by calling new(std::nothrow)

Also try really hard not to leak any memory in the process.

Lots of error checking added to check if reads and writes fail
returning B_IO_ERROR and if initialization fails returning B_NO_MEMORY
2014-03-06 16:48:48 -05:00
John Scipione
33ef87cd9e GIFTranslator: style fixes 2014-03-06 16:38:41 -05:00
John Scipione
ead17dec08 GIFTranslator: Style fix, rename cs to colorSpace 2014-03-06 16:19:50 -05:00
John Scipione
7b46114834 GIFTranslator: call new(std::nothrow) BBitmap again
... to prevent throwing a std::bad_alloc exception if there isn't
enough memory to allocate a new BBitmap.

This effectively reverts 116e78d4d4

Thanks Axel and AnEvilYak and sorry for the noise.
2014-03-06 16:19:48 -05:00
Humdinger
15791c196f Sentence casing "Low latency" and "Power saving". 2014-03-06 17:31:32 +01:00
David Höppner
fe309ca2a3 setarch: list available architectures
Signed-off-by: Oliver Tappe <zooey@hirschkaefer.de>
2014-03-06 09:27:43 +01:00
Adrien Destugues
0009559ca3 Style fixes. 2014-03-06 08:59:04 +01:00
Sean Thames
54e1893c41 Changed enable notification button to a checkb Changed variable names to more appropriate names. Fixed a potential issue with fNotificationBox getting out of sync. Fixed a potential issue of starting the Notification Server more than once.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2014-03-06 08:59:03 +01:00
John Scipione
01be25aefe GIFTranslator: Refactor filling out BBitmap
* Remove the NULL check since BBitmaps don't return NULL but check
  that it IsValid() instead.
* Fill out the *out pointer directly instead of creating a temporary
  bitmap pointer.
* Rename err to result.
* Return B_OK unconditionally if we get to the end of the function.

Thanks again Jérôme
2014-03-05 15:36:10 -05:00
John Scipione
c030befbf9 GIFTranslator: Reorder includes
Thanks Jérôme
2014-03-05 15:36:04 -05:00
John Scipione
5adf9d6ee5 Use doxygen style comments as per guidelines
Thanks Axel!
2014-03-05 15:34:53 -05:00
Ingo Weinhold
5b5f099fc0 Fix DebugAnalyzer gcc 4 build 2014-03-05 21:05:15 +01:00
Adrien Destugues
2580b20edd WebPositive: fix cmd+esc handling
* Don't show the menu in MenusBeginning, this is invoked for all
shortcuts, so cmd+C and others would show the menu. Fixes #9186.
* Instead, show the interface specifically for the CMD+ESC case. Also,
send that key event to the default window handler so the menu opens.
Before, this was mistakenly sent to the "stop" button. Fixes #10523.
2014-03-05 17:21:17 +01:00
John Scipione
75d4568c15 DebugNow: Shrink the text a bit, fixes #8170 2014-03-04 18:13:29 -05:00
John Scipione
782f6a4fae DebugNow: Internationalize text
Translation instructions are "keep it short and all uppercase,
5 characters or less".

Now non-English languages can join the fun:

DEBUG JETZT
DEBUG AHORA
DEBUG ORA
DEBUG が現在

... this might be a bit of a challenge for some languages.
2014-03-04 18:11:51 -05:00
John Scipione
0f7a8c1da4 DebugNow: Style fixes, export class def to header
Update copyright header, make colors static const, * goes with type
2014-03-04 18:05:21 -05:00
John Scipione
008f676344 Add gif, jpeg, and png mimetype support to WebPositive 2014-03-04 16:31:47 -05:00
John Scipione
5d10a74cfb BSeparatorItem: Style fix, rename archive to data
... missed it in a few places, trying to make variables names consistent.

Update hrev in docs
2014-03-04 14:28:20 -05:00
John Scipione
379ede58af Style fixes to BMenuItem::GetContentSize and update docs
Rename width and height to _width and _height matching the header.

Update the documentation for this method as well.
2014-03-04 14:17:46 -05:00
John Scipione
4479c8fda7 Style fixes to BSeparatorItem class.
Mostly meant for documentation with a few other style corrections as well.

Update copyright header.
2014-03-04 14:15:20 -05:00
Adrien Destugues
217f090f9e malloc_debug: align allocations
* Align all allocations of more than 8 bytes to 8-byte.
* Avoids hitting ASSERTs in WebKit when built in debug mode (it assumes
at least 8 byte alignment)
2014-03-04 17:29:30 +01:00
John Scipione
81abd9ed03 GIFTranslator: gifSave not gitSave, habit
Also move comment before function. No functional change intended.
2014-03-04 01:47:43 -05:00
John Scipione
f4b507313b GIFTranslator: error if out of bounds
Error out if we're trying to access an out-of-bounds array index
(which should never happen, but let's check just in case.)
2014-03-04 01:22:55 -05:00
John Scipione
2dcb2d8684 GIFTranslator: Increase ENTRY_COUNT to 4354
Fixes #10618

Why 4354?

4354 = 4096 + 256 + 1 + 1
4096 for the image data, 256 for the color codes,
1 for the clear code, 1 for the end code
2014-03-04 01:22:55 -05:00
John Scipione
9504d99506 GIFTranslator: rename cs and size to codeSize 2014-03-04 01:22:54 -05:00
John Scipione
4389d32381 GIFTranslator: Read the left and top image coordinates 2014-03-04 01:22:53 -05:00
John Scipione
5a7193d558 GIFTranslator: Replace magic constants
Introduce GIFPrivate.h to define these magic constants

Also, make sure that we don't go over LZ_MAX_CODE bits
2014-03-04 01:22:53 -05:00
John Scipione
c14b552e41 GIFTranslator: check if NULL before accessing member 2014-03-04 01:22:52 -05:00
John Scipione
4ac43a1be4 GIFTranslator: use ENTRY_COUNT define instead of 4096 2014-03-04 01:22:52 -05:00
John Scipione
5b53a45a94 GIFTranslator: Use array notation instead of pointer 2014-03-04 01:22:51 -05:00
John Scipione
84bff75245 GIFTranslator: Log info messages with LOG_INFO not LOG_ERR 2014-03-04 01:22:50 -05:00
John Scipione
6ff3ca264d GIFTranslator: Style change, uchar => unsigned char 2014-03-04 01:22:50 -05:00
John Scipione
071f3a6ea0 GIFTranslator: don't call an implicit constructor for Memblock 2014-03-04 01:22:49 -05:00
John Scipione
116e78d4d4 GIFTranslator: Remove unneeded BBitmap checks 2014-03-04 01:22:46 -05:00
John Scipione
5e4c29a6b7 GIFTranslator: Style fixes 2014-03-04 01:22:43 -05:00
Philippe Saint-Pierre
ff5711ee19 LaunchBox: Add missing curly brackets (CID #991345) 2014-03-02 17:00:36 -05:00
Oliver Tappe
2e61b6dd1d Adjust libnetwork.so to no longer depend on libbe.so.
* Libbe is not available when cross-building the *_bootstrap packages,
  so no libnetwork could not be used either, which made building 
  anything network-related impossible.
* The only code in libnetwork that requires libbe is the notification,
  so I moved that over to libbnetapi. Non-C++ applications can't use
  the notification calls anyway, as their interface is C++-only.
2014-03-02 21:55:25 +01:00
Axel Dörfler
22d300c2ce AHCI/BFS: fixed temporary trim debug output. 2014-03-02 21:54:31 +01:00
Rene Gollent
5affe86f8f Remove outsourced findutils/xargs provides from haiku package. 2014-03-02 12:01:02 -05:00
Julian Harnath
eb5224cf9d Oops, remove leftover "TODO" in comment 2014-03-02 16:28:53 +01:00
Julian Harnath
de26f2e762 Make code a bit easier to read, add some comments
* No functional change intended
2014-03-02 16:26:32 +01:00
Julian Harnath
34d3dff3f5 Fix feedback divider value approximation
* The rounding algorithm here expects to start with the 2 digits
  after the decimal point in pll->feedbackDivFrac. Multiplying with
  1000 instead of 100 filled it with 3 digits.
  The last step then set the fractional part to zero because it was
  still too large.
2014-03-02 16:26:29 +01:00
Adrien Destugues
edf1552770 ProcessController: add missing B_TRANSLATE_MARK
Thanks to Diver for reporting!
2014-03-02 15:04:51 +01:00
Adrien Destugues
87400ed1de Use local time when computing max-age expiration
BDateTime.SetTime_t expects its parameter to be in local time.
2014-03-01 09:16:33 +01:00
John Scipione
fa412b5fd9 BMenuItem: Style fixes related to documentation. 2014-02-28 19:05:34 -05:00