Commit Graph

49952 Commits

Author SHA1 Message Date
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
Arvind S Raj
fd468340f1 Add more build profiles to "jam help" list.
* fixes #10655

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
(with some style fixes)
2014-03-10 08:24:35 +01:00
Jonathan Schleifer
98ae6f2784 Update HaikuPortsCross repo for all archs 2014-03-10 04:24:55 +01:00
Jonathan Schleifer
92bd26ce8e stdio.h: Add missing *_unlocked declarations
Configure scripts would find the symbols and thus use them and assume
our headers declare them.

This fixes building gcc_bootstrap.
2014-03-09 23:08:51 +01: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
autonielx
0af7f3c1c2 Update translations from Pootle 2014-03-08 06:16:12 +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
ae63d4aa97 Tiny change to the BListItem docs (make more generic) 2014-03-07 13:55:44 -05:00
John Scipione
a003ac003f Add BStringItem docs 2014-03-07 13:55:43 -05:00
John Scipione
86bdb1b69d Style fixes to BStringItem 2014-03-07 13:55:43 -05:00
John Scipione
c2db663cdf Add skeleton docs for BPicture and BPictureButton 2014-03-07 13:55:42 -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