49594 Commits

Author SHA1 Message Date
John Scipione
c79381d32a exfat: limit backup volume name to 11 characters 2014-02-04 20:33:13 -05:00
John Scipione
aeb03a8f68 exfat: style fixes only 2014-02-04 20:32:35 -05:00
Axel Dörfler
a7119b44f2 ahci: Finally fixed TRIM support.
* The maximum number of allowed ranges is now taken into account.
* Still untested on my end, however, I tested the array copying code with
  a number of test data.
hrev46819
2014-02-05 00:20:31 +01:00
Stephan Aßmus
63a30a4744 Implemented using the transformation in Painter (incomplete)
* Also removed wonky BeOS rendering of stroked round rects and ellipses.
   Nobody would expect it to work like this. This affects stroked round rects
   and ellipsis with a pensize greater than 1.
 * Refactored common code from _StrokePath() and _FillPath().
 * _StrokePath() returned a curious bounding box that didn't take into
   acount the miter width. Now the bounding box is computed from the actual
   stroke conversion of the path.
hrev46818
2014-02-04 23:52:32 +01:00
Stephan Aßmus
2e7da8455a Fixed execute bits of AGG headers. 2014-02-04 23:51:49 +01:00
Stephan Aßmus
897f5562f9 Remove transform again from drawing coord conversion 2014-02-04 22:54:54 +01:00
Stephan Aßmus
a6db6bd40f Added WIP support for affine transformations to BViews.
Everything untested, but compiles, so it must work. The idea is to introduce
BAffineTransform additionally to the existing Origin and Scale properties of
BViews. One may use it in parallel or as an alternative. Painter in app_server
is not yet aware of the additional transformation. It is however already used
to transform drawing coordinates. It probably needs to work differently,
perhaps only in Painter and AGGTextRenderer.
hrev46817
2014-02-04 22:53:06 +01:00
Alexander von Gluck IV
339a018112 radeon_hd: Rework dp aux functions to take connector index
* This is less pretty, but we need access to the connector
  to find the HPD gpio pin mask on the card.
* dp_aux communications seem to work again.
* If you have a DisplayPort item attached to your card you
  may want to just unplug it at this point. We attempt DP
  link training and it fails. This failure will also cause
  other monitors to not function as app_server still isn't
  multi-head aware (#10486)
hrev46816
2014-02-03 20:20:13 -06:00
Stephan Aßmus
27a5783afc agg_clipped_alpha_mask.h: Partially revert previous commit.
There wasn't an out-of-bounds access, I read the code wrongly. Keep the code
in sync with the AGG version. What happens is that for x < 0 and xmax < 0,
the code will memset the x < 0 region twice, unless I am still irritated...
hrev46815
2014-02-04 00:05:54 +01:00
Stephan Aßmus
77214b5abc app_server: Implemented nested clipping paths
* The alpha mask is no longer stored with 75% more memory than needed,
   resolving a TODO.
 * AlphaMasks are now BReferenceables.
 * AlphaMasks are transferred to a pushed DrawState.
 * When an AlphaMask is set on a DrawState, it sets the previous state's
   mask to the AlphaMask. That one now takes care of updating not only itself,
   but the previous mask as well (which works recursively).
 * In AlphaMask::Generate(), a combination happens with the previous state's
   mask, which again works recursively in case the previous mask also needs
   to be updated. This step is combined with extracting the alpha channel from
   the UtilityBitmap used to play the ServerPicture.
 * Fixed some out of bounds access to memory in the "outside" case in
   agg_clipped_alpha_mask.h. This happened when the requested region was
   both before and after where the mask has data.
hrev46814
2014-02-03 23:45:52 +01:00
Stephan Aßmus
7bc9f84556 ClipToPicture test: Fixed nested states expected look. 2014-02-03 23:45:51 +01:00
Ingo Weinhold
d5ed97cd18 LibsolvSolver::GetResult(): Fix package update cases
* The transaction_type(.., ..., SOLVER_TRANSACTION_RPM_ONLY)
categorization of the transaction steps is incorrect since rpm
automatically replaces an older package version when a new one is
installed and thus such package removals would be omitted. Use a
simpler check instead.
* Omit the unnecessary explicit check whether a package really has to be
installed.

Thanks to Michael Schroeder @ SUSE for his help figuring this out.
hrev46813
2014-02-03 23:00:04 +01:00
Jonathan Schleifer
b55c918f57 Import gnuregex 0.12 and remove hardcoded paths
This is required on OS X and other systems which do not have the glibc
extensions for regular expressions (FreeBSD is not one of them as it
already includes gnuregex in /usr). With this there are no hardcoded
non-standard paths for OS X anymore.

regex.c and regex.h are from the official gnuregex 0.12 distribution,
the only modification is that I added __BEGIN_DECLS and __END_DECLS to
regex.h.
hrev46812
2014-02-03 18:27:35 +01:00
Alexander von Gluck IV
539a6cafc5 radeon_hd: More gpio rework
* Bump i2c data into it's own struct
* Populate gGPIOInfo with general gpio pins
  (for things like HPD, and voltage control)
* Attach HPD gpio pins to connectors
* Dump trace info of HPD pins as well as i2c pins
hrev46811
2014-02-03 17:02:08 +00:00
Alexander von Gluck IV
2b03285218 radeon_hd: Rework gpio pins
* There are GPIO pins for hotplug interrupts and i2c
  communications (for edid). Add two fields to connector
  (index for each in gGPIOInfo).
* DP aux communcation seems to want the hotplug GPIO pin
  info, which we don't get (I think this is why DP AUX comms
  is broken at the moment)
* GPIO LUT seems to know about a wide range of GPIO pins, while
  the i2c gpio calls only know about the ones needed for i2c.
* I'm tempted to populate gGPIOInfo with the LUT pins and
  then suplement that data with the i2c GPIO pins data.
  (however, not sure how many pins there are generally defined
  so it could impact performance. More investigation is needed)
  This would reverse how it works now with this commit.
hrev46810
2014-02-03 06:44:29 +00:00
Alexander von Gluck IV
8ebdc440de radeon_hd: Better tracing. Fix DP ack bitwise shift 2014-02-03 06:44:28 +00:00
Pawel Dziepak
f116370edd scheduler: Relax penalty cancellation requirements
Priority penalties were made more strict in order to prevent situation
when two or more high priority threads uses up all available CPU time
in such manner that they do not receive a penalty but starve low priority
threads.

However, a significant change to thread priorites has been made since and
now priority of all non real time threads varies in a range from 1 to
static priority minus penalty. This means that the scheduler is able to
prevent thread starvation without any complex penalty policies.
hrev46809
2014-02-03 04:55:16 +01:00
Pawel Dziepak
6155ab7b25 scheduler: Provide more stable core load statistics
Originially, core load was a sum of eastimated loads of all currently
running or ready threads on a given core. Such value is changing very
rapidly preventing the thread migration logic from making any reasonable
decisions.

This patch changes the way core load is computed to make it more stable
thus improving the qualitiy of decisions made by the thread migration logic.
Currently core load is a sum of estimated loads of all threads that have been
ready during last load measurement interval and haven't been migrated or
killed.
2014-02-03 04:55:16 +01:00
Pawel Dziepak
e6cfae450e kernel/x86: Make x2APIC CPU topology detection more future proof
The main reason for this patch is to fix gcc 4.8.2 warning about
hierarchyLevels possibly being used not initialized. Such thing
actually can not happen since all x2APIC CPUs are aware of at least
3 topology levels. However, once more topology levels are introduced
we will have to deal with CPUs that do not report information about all
of them.
2014-02-03 04:55:09 +01:00
Alexander von Gluck IV
4d449fccfe radeon_hd: Fix superfluous DPMS hook calls
* The DPMS hook would be called on all
  possible displays causing lots of link
  training on incomplete connector structures
  that may be not attached / connected.
hrev46808
2014-02-03 02:53:04 +00:00
Jonathan Schleifer
d229280a80 .gitignore: Remove the NFD entry
The correct way is to set precomposeunicode = true in .git/config so
that git handles NFC vs. NFD. Not sure what a good place to document
that would be, though.
hrev46807
2014-02-02 08:47:59 +01:00
Stephan Aßmus
b5364215d0 ClipToPicture: Correct the scaled clipping tests. hrev46806 2014-02-01 23:22:23 +01:00
Stephan Aßmus
3c43cf1c40 OffscreenDrawingContext: Implement ResyncDrawState()
This is called whenever the DrawState is modified, so that it gets applied
to the DrawingEngine. Otherwise, the DrawingEngine works with an out-dated
state.
2014-02-01 23:15:21 +01:00
Stephan Aßmus
b971358df3 AlphaMasks: Use correct DrawState when playing picture
The current drawing state when the picture starts playing is the base
state that drawing commands in the picture itself should not be able to
modify. In the ClipToPicture test, the nested state test now at least
draws the last picture at the correctly scaled location.
2014-02-01 22:35:19 +01:00
Stephan Aßmus
ce2c561521 ServerPicture: Set correct pen location after DrawString() 2014-02-01 22:33:50 +01:00
Stephan Aßmus
7212dd427a ClipToPicture test: Start the interesting test.
* Also fix the compare graphics to what they are actually supposed to look
   for the nested states test.
2014-02-01 22:12:21 +01:00
Stephan Aßmus
ad3318b33d DrawState: Coding style cleanup 2014-02-01 22:11:55 +01:00
John Scipione
77acb43273 TextView: Remove Cmd+Up and Cmd+Down Shortcuts
to go to the beginning and end of the document.
hrev46805
2014-02-01 11:04:34 -05:00
Stephan Aßmus
94518ff277 Completely reworked ClipToPicture test.
* The window lets you pick the test via drop-down.
 * The tests are concise and focus on a single thing.
 * There is a second view showing the expected result via "regular" drawing.
hrev46804
2014-02-01 14:56:25 +01:00
Gerasim Troeglazov
6882e5ef83 NTFS: Codestyle cleanup hrev46803 2014-02-01 10:36:34 +00:00
John Scipione
9bd08d10ab Tracker: Don't change selection if right-click
... inside a selection. If you click outside a selection extend the
selection to include the new items as Tracker normally would and
then pop up the dialogs.

Works with control-click as well, same utility function used.

Fixes #10449
hrev46802
2014-02-01 04:42:39 -05:00
John Scipione
80f4300a72 Tracker: Make context menu work with control-click
in additional to secondary mouse button click, uses same utility function.
2014-02-01 04:42:38 -05:00
John Scipione
898f108250 Tracker: Add SecondaryMouseButtonDown method
Create this utility method in Utilities.cpp and use it elsewhere tell if the
secondary mouse button is pressed or if it is emulated with a control-click.
2014-02-01 04:42:36 -05:00
John Scipione
eed35bac80 Tracker: add class name to pragma 2014-02-01 04:42:35 -05:00
John Scipione
e37767b0d2 Tracker: some style fixes to BContainerWindow() 2014-02-01 04:42:34 -05:00
John Scipione
6be6813f23 Tracker: swap using std::swap() 2014-02-01 04:42:33 -05:00
John Scipione
fcb24e82c4 Tracker: Only open items if doubleclick w/ primary MB
Also rename fLastClickPt to fLastClickPoint
2014-02-01 04:42:32 -05:00
John Scipione
9d33fe6896 Tracker: Style fixes to BPoseView 2014-02-01 04:42:31 -05:00
Stephan Aßmus
6a6060d8fe ServerWindow: Fix converting the clip picture origin
The current view state is already used for the picture playback, the
remaining conversion needs to take into account screen location and scrolling
offset of the view. This may need further investigation: a) When is this
updated? It needs to be whenever a View changes screen location, size or scroll
offset, which may not be the times when this method is called. b) I am not
sure if the scrolling offset is indeed part of this conversion...
hrev46801
2014-02-01 10:39:12 +01:00
Stephan Aßmus
b58b8cdd30 BView: Fix ClipTo[Inverse]Picture() syncing.
When BPictures are created on the stack and go out of scope, they send a
AS_DELETE_PICTURE command to the ServerApp thread, and that command may be
processed sooner than the AS_VIEW_CLIP_TO_PICTURE command in the ServerWindow
thread, causing that command to no longer find a ServerPicture for the given
token. Apparently, the Be API leaves you the choice not to sync, in case for
example when you cache your BPictures and they remain valid. The default
value for "sync" is true. The BeBook could explain the situation better when
sync is needed and when not.
2014-02-01 10:39:12 +01:00
Stephan Aßmus
138e4c77eb BPicture: Attach as many picture tokens as promised. 2014-02-01 10:39:11 +01:00
Gerasim Troeglazov
1cbc486e1f NTFS: Code cleanup hrev46800 2014-02-01 07:20:24 +00:00
Gerasim Troeglazov
154570e8f9 NTFS: Remove checking for NULL 2014-02-01 07:03:11 +00:00
autonielx
eefd86b752 Update translations from Pootle hrev46799 2014-02-01 06:16:24 +01:00
John Scipione
3042958bab Mail: Change quote and unquote shortcuts
to Cmd+' (quote) and Cmd+Shift+'

This should also work better for International users who don't have
ready access to the [ and ] keys.
hrev46798
2014-01-31 18:41:24 -05:00
John Scipione
0875173246 TextView: Update nav shortcuts again
Make Cmd+Left and Cmd+Right work the same as Option+Left and
Option+Right, that is, they do word-wise navigation.

Make Option+Up go to beginning of paragraph and Option+Down go to end
of paragraph like Cmd+Left and Cmd+Right used to.

Unfortunately option shortcuts are currently eaten by S&T until #9431
gets fixed.
2014-01-31 18:30:07 -05:00
Gerasim Troeglazov
712bf7552d NTFS: Fix TRACE position hrev46797 2014-01-31 09:26:40 +00:00
noryb009
385e65fd21 NTFS: Fix Coverity CID 1108342: resource leak 2014-01-31 09:24:50 +00:00
John Scipione
8197db540b S&T: Add the arrow key tab nav back
This undoes the partial fix to #9431, both sets of shortcuts are supported
for the time being. This mirrors the functionality of ctrl+arrows and
ctrl+tab/ctrl+shift+tab to cycle through apps and windows via Twitcher.

We really need system keybinding settings to fix #9431 properly.
hrev46796
2014-01-30 19:48:37 -05:00
John Scipione
fb6ab24a07 Update S&T copyright headers 2014-01-30 19:48:36 -05:00