Commit Graph

52586 Commits

Author SHA1 Message Date
Adrien Destugues
ea22ee950d Update boost packages against newly built ICU.
Thanks to cdesai for providing rebuilt packages!
2014-12-10 16:36:23 +01:00
Adrien Destugues
6f20778781 ControlLook: fix DrawActiveTab with subpixel rectangle
Fixes #4078.

When font hinting is disabled, the width of a string may not be an
integer number of pixels. This results in the tab position also being
non-integer, and the drawing code doesn't handle this, resulting in part
of the tab being shifted 1px to the right.

Snap the rectangle to the pixel grid so the runding error doesn't
happen.
2014-12-10 13:50:19 +01:00
Adrien Destugues
cbb8ebbbbb Set item colors in BListView instead of BStringItem
* Fixes #3970 without introducing the bugs from BeOS
* Makes it easy to override BStringItem just to change the text color.
* Makes it easy to implement custom list items using the correct colors.
2014-12-10 13:34:51 +01:00
Adrien Destugues
524288065b Test for #3970.
* This shows the problem in Haiku, it is not easily possible to change the
color of BStringItem.
* It also shows that the BeOS implementation doesn't restore the view
state after drawing items, so the last item in the list also draws
green, and selecting the first also makes it green.
2014-12-10 13:30:10 +01:00
Adrien Destugues
04f884284c Colorcontrol: show resulting colors in the slider
Instead of showing plain red, green and blue color ramps, show what
the color would be if you moved the sliders to each point.

This is what was done on Mac OS classic and is also used in some other
tools to help you targetting a particular color.

It also limits the need for a color preview, which BColorControl
currently doesn't include, forcing apps to implement one themselves.

Fixes #3790 (the patch there didn't apply anymore, so I redid the work.
Credits for the change should go to stpere).
2014-12-10 11:33:58 +01:00
Adrien Destugues
d18ae0336e ape_reader: setup for hybrid build.
I forgot that media add-ons are hybrid by default. Fixes the build.
2014-12-10 11:00:49 +01:00
Adrien Destugues
1148ea734e AVCodecDecoder: remove annoying assert.
According to Colin this is not supposed to happen, but it does. Since
the affected video otherwise decodes just fine, I think it is safe to
disable the assert and not annoy our users.

Fixes #11409.
2014-12-10 10:03:59 +01:00
Adrien Destugues
d181ea48ed Add the ape reader to the image again.
Fixes #7048.
2014-12-10 09:40:20 +01:00
Adrien Destugues
ff72ec4fee APE reader: optimize seeking
* The APE SDK can only decode rather big chunks at a time (several
seconds), so our reader keeps an internal buffer of the last decoded
chunk.
* However, this was always dropped when seeking, meaning the same few
seconds of sound were decoded again and again.
* I'm not sure why MediaPlayer is trying to seek to the position it
already is at, but we can make it work, so why not.

Now the existing buffer is reused if possible when seeking. This makes
it possible to play APE files in MediaPlayer.

Also, several more style fixes.
2014-12-10 09:34:51 +01:00
Adrien Destugues
5480f203d3 APE reader: style fixes. 2014-12-10 09:11:22 +01:00
Puck Meerburg
b0a48e3844 DriveSetup: Also mount BDiskDevices which contain a file system.
Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>

GCI2014, Fixes #6783.

* The "Mount All" Tracker menu only mounted partitions, not disks filled
directly with a filesystem.
2014-12-10 08:06:05 +01:00
Adrien Destugues
2311bdf24f AssembleNasm: add source dir to include path.
This makes it possible to %include local files. nasm doesn't allow this
otherwise (include paths are assumed relative to the working directory).

Fixes build of ape_reader.
2014-12-09 17:53:44 +01:00
Adrien Destugues
0fecd3e882 Build fix. 2014-12-09 17:30:55 +01:00
Adrien Destugues
7148abdcc2 HttpForm: implement copy constructor.
Thanks to GCI studdent arroyoc for finding that this was missing and
HttpRequest.SetFormData couldn't work.
2014-12-09 17:05:02 +01:00
Adrien Destugues
ff68ae9837 ffmpeg: disable runtime frame rate changes support.
This change was introduced by Colin for DVB-T support, however it also
breaks the timing of several MP4 files. The code is incomplete and
computes slightly to very wrong frame rates (one video plays about twice
as fast as needed, another one attempts to play at 30000 FPS).

I suspect similar problems would be found when changing the frame rate
in DVB-T streams in the same way, so I'm disabling this code for now
until a correct solution is found or we manage to use a newer version of
ffmpeg (where there is an actual framerate field in the format and it
doesn't need to be derived from the time_base anymore).

This restores the previous behavior of computing the framerate at the
AVFormatReader level, that is, once per stream, rather than once per
frame. At the stream level we have enough data to compute an "average"
frame rate, and there is also an "r_frame_rate" (real frame rate) which
may be usable for this. Not having working DVB-T hardware to experiment
with that yet, I'll leave it to others.

Fixes #11283 and the last remaining problem in #4512.
2014-12-09 15:42:49 +01:00
Adrien Destugues
dca4966cd6 ScreenTest: style fixes. 2014-12-09 15:17:20 +01:00
Adrien Destugues
77476b38fe ffmpeg gfx_conv_c: Style fixes. 2014-12-09 14:59:12 +01:00
Adrien Destugues
d5b78822f7 Implement Y'CbCr 4:1:0 to RGB32 conversion.
* Also known as the YUV9 FourCC and used in SVQ1 (early QuickTime)
videos.
* Fixes part of #4512 (one more video played correctly) and replay of
all old Quicktime videos when you don't have overlay support.
2014-12-09 14:30:28 +01:00
Adrien Destugues
0edd73e467 FileTypes: fix layout of the FileTypeWindow.
* Fixes #10359.
* Thanks to Laurent Chea for investigating and identifying the problem.
His patch was not used because it makes more changes than needed.
2014-12-09 09:50:54 +01:00
Adrien Destugues
ae0218ed54 SATDecorator: use the correct tab color
The tab color used for the SAT highlight was hardcoded to the default
yellow. Instead get it from the decorator settings.

Fixes #11571.
2014-12-09 09:34:08 +01:00
Adrien Destugues
4380baa4d7 DataTranslations: avoid layout jumping
* Constrain the list and "right view" sizes so the layout doesn't change
for each translator.
* Fixes #6897.
2014-12-09 08:47:09 +01:00
Laurent Chea
4cec648e86 Fix alignment in TextControl widgets
* Fixes #8391
preferences.

Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>

* This was visible for example in the "double click text area" in Mouse
2014-12-09 08:24:14 +01:00
Niels Sascha Reedijk
f36b3f9b3e Generate the Makefile for making docsets.
Docset is an increasingly popular format that is used to generate
an index for HTML documentation that can be viewed by specialized
viewers such as Dash (on the Mac). The output can only be generated
on a Mac currently. Enabling the DOCSET parameter will generate a
Makefile in the html output directory, which can be used to generate
the Docset itself.

Enabling the Docset Makefile does not negatively impact other things,
as such it seems safe to just enable it for whoever wants to build
the docset on a mac.
2014-12-08 22:14:24 +01:00
Jérôme Duval
bbcb9a572a updated python package 2014-12-08 21:36:01 +01:00
Adrien Destugues
d23c413188 Interpolating resampler: un-break it.
The interpolation was performed only on the samples in a buffer,
without "linking" with the previous one. This can't work.
* Remember the last sample from a buffer to be able to use it when
interpolating the first samples of the next one
* Adjust the kernel to properly loop over all samples in the buffer

Fixes #9438.
2014-12-08 19:07:45 +01:00
Adrien Destugues
dab42bf05b MixerToy: do an initialisation run on the mixer
The Interpolating mixer has internal state which must be setup by a
previous frame (we assume 0 for the first frame). Since we work on
exactly a period of the wave here, sending the same data twice works as
it should.
2014-12-08 18:51:47 +01:00
Adrien Destugues
258fbe371b MixerToy: app for testing mixer resamplers.
* Shows a source wave (black), a sampled version of it (red), and a
resampled version of that using the mixer (green).
* Debugging tool for #9438. Shows that the drop/repeat resampler is
working ok, but interpolate is quite broken.
2014-12-08 18:10:31 +01:00
Adrien Destugues
9f9d972f79 Minimal documentation for BOptionPopUp.
This was available in R5 but somehow went missing from our version of
the Be Book (it is documented in the release notes in Tycom Systems
version). Document the more important methods of it, at least.
2014-12-08 14:38:09 +01:00
Sergei Reznikov
2b89943545 Keymaps: add Russian ruble symbol...
to Russian, Belorusian and Ukrainian keymaps

Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>

This is the new official symbol for ruble since october 2013, and was
added to Unicode 7.

Note that our version of the DejaVu font doesn't support it yet, we need
to update it as well.
2014-12-08 12:48:29 +01:00
Adrien Destugues
27606dae36 Mixer resampler: refactor using templates.
There is no need to copypaste the resampling code which is mostly the
same for all formats. However, gcc2 is confused by member function
templates (I hit an internal compiler error) so the resampling code was
moved to a static function instead.
2014-12-08 12:43:45 +01:00
Adrien Destugues
bd67cb1531 Outsource VL-Gothic font.
Fixes #11576.
2014-12-08 09:28:08 +01:00
Adrien Destugues
f87c1cec88 Mouse prefs: further layout fixes.
* Use BSeparatorView instead of trying to replicate it with a BBox
* Use B_USE_SMALL_SPACING instead of 7.

Fixes #11528.
2014-12-08 08:39:55 +01:00
Laurent Chea
ed35dbde39 Mouse prefs: Layout improvements
* Some spacing was uneven leaving items uncentered
* Removed "slow/fast" labels from the sliders as they were not correct
(a delay is short/long, not slow/fast, same for acceleration) and not
very useful.

Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>
2014-12-08 08:37:56 +01:00
Augustin Cavalier
bc6db669fd ResourceEdit: delete from tree.
It has been moved to HaikuArchives.
2014-12-07 16:20:43 +00:00
Alexander von Gluck IV
70cc56922e ResourceEdit: Re-add subdir for clean gci removal 2014-12-07 16:18:00 +00:00
Alexander von Gluck IV
d26095f20f Cortex: Fix build on x86_64 (and others?) 2014-12-07 16:05:42 +00:00
Alexander von Gluck IV
74349b4ff4 RedEdit: Fix build 2014-12-07 15:49:05 +00:00
Jonathan Hanna
6543bf0ae1 radeon_hd: Ensure all PLL's are INVALID to begin with
* If something breaks, it is likely because the wrong PLL
  is chosen later.
2014-12-06 10:38:00 -06:00
Adrien Destugues
e1424d2104 Update arm_none_eabi_gcc and _newlib packages. 2014-12-06 11:17:04 +01:00
autonielx
1f4afc1217 Update translations from Pootle 2014-12-06 06:30:41 +01:00
autonielx
24cddc96bc December 2014 update: remove Norwegian, Hindi and Greek 2014-12-06 06:30:41 +01:00
John Scipione
459706ee4d Update BView and BStringView docs
... based on Adrien's suggestions.

* Add \warning back to BView::ResizeToPreferred(), add \remark to highlight
  methods only appropriate to use as part of a BLayout.
* Clarify BView::SetFont() method and refer to BFont docs.
* Clarify BStringView::SetText(), Text(), and Draw().
* add field descriptions for BStringView::Instantiate().
2014-12-05 20:35:40 -05:00
Adrien Destugues
8f4cd9c976 Improve Workspaces Zoom() implementation
* Do not move the window, this is annoying
* Instead of putting the window at a fixed size, keep the current width
and adjust the height so the preview has a correct aspect ratio.

Fixes #5034.
2014-12-05 15:28:54 +01:00
Adrien Destugues
c4e8d88f7c app_server: fix gradients with no stops at the ends
When a gradient has no stop at offset 0 or 255, the drawing code will
not automatically complete the gradiet with the first or last color,
instead agg interpolation generated invalid random colors.

To avoid this, insert extra stops at the start and end in the
DrawingEngine when we prepare the gradient for drawing. We just copy the
first and last stops to new stops at offsets 0 and 255, which makes sure
the gradients covers the whole range and gives the expected result.

Fixes #2945.
2014-12-05 14:52:31 +01:00
Adrien Destugues
96bac1b30b Add a test for #2945. 2014-12-05 14:51:47 +01:00
Adrien Destugues
336c69d9c4 Add credits for the Slovenian translation.
Will be included starting tomorrow.
Fixes #11157.
2014-12-05 12:50:39 +01:00
Adrien Destugues
654d47f356 Magnify: fix layout with big font sizes
* Move the menu to the left side so it doesn't overlap the status.
* Fixes #6934.
2014-12-05 10:20:44 +01:00
John Scipione
6db90d17a1 Fix BMimeType::SetIconForType() docs 2014-12-04 19:55:40 -05:00
John Scipione
7ec9bf2f5a A few more small fixes, trying to go quick 2014-12-04 19:33:35 -05:00
John Scipione
9bd3dedfce Fix a bit of copy pasta in the locale docs 2014-12-04 19:23:47 -05:00