Commit Graph

55326 Commits

Author SHA1 Message Date
John Scipione
53f75ce5d6 BColorControl: Remove fOffscreenView pointer
...and rename fBitmap to fOffscreenBitmap to make it more clear what it is.

We don't need to save a pointer to both the offscreen bitmap and
the offscreen view, just the bitmap. We can access the view by calling
fOffscreenBitmap->ChildAt((int32)0). This gives us back a _reserved private
variable slot.

In the (unlikely) case that _InitData() is called with offscreen = false but
the fOffscreenBitmap is not NULL, delete fOffscreenBitmap before
setting it to NULL so that memory is not leaked.
2016-03-12 19:14:26 -08:00
John Scipione
76b9d53bd0 BColorControl: Rebuild control after mode switch
App Server sends each window a message that the screen has changed:
https://www.haiku-os.org/legacy-docs/bebook/BWindow.html#BWindow_ScreenChanged
Propegate B_SCREEN_CHANGED message to all child views first

Tell BColorControl to read the B_SCREEN_CHANGED message and reinitialize itself.

* Only reinit if switching to or from B_CMAP8
* Initialize all pointers to NULL in constructor
* Don't destroy and rebuild offscreen view (and text views) on reinit
* Reinitialize offscreen view on reinit.

Fixes #8035

Also initialzing the pointers to NULL in constructor fixes #12673
2016-03-12 19:13:35 -08:00
John Scipione
0e3b3f92ef BColorControl: Awesome style fixes 2016-03-12 19:10:58 -08:00
John Scipione
c5fe2948ba BColorControl docs: pointer style
(really minor change that doesn't affect output)
2016-03-12 19:10:39 -08:00
John Scipione
8db20d05cb BColorControl: Standardize on useOffscreen
...instead of doubleBuffered for the flag that specifies whether or not to
draw using an offscreen buffer.

Also remove the (not currently used) text from the docs since the parameter
is being used.
2016-03-12 19:10:38 -08:00
Michael Lotz
3108c9bed0 ioapic: Fix 64 bit build with tracing enabled, some cleanup.
* Use print format macros to fix the 64 bit build.
* Correct a typo in the shift of the trigger mode definition. As the
  value is 0 either way, this does not make a functional difference.
* Use macros instead of values in comparisons.
2016-03-12 13:34:01 +01:00
Michael Lotz
91ea4fb48a usb_ecm: Use the current configuration instead of a fixed one.
This allows usb_ecm to work in case it is part of a device using
different configurations for different types of interfaces and ECM is
not the first configuration.
2016-03-12 13:15:49 +01:00
Michael Lotz
b62bb24fe4 USB: Force spec mandated control pipe max packet sizes.
While the USB descriptors are specifically built in such a way that it's
always possible to correctly query the max packet size, some devices
unfortunatley use bogus values in their descriptors and rely on the
stack to use the mandated values.

This fixes USB devices in VirtualBox when EHCI emulation is used. This
really is a bug in their descriptor emulation though.
2016-03-12 13:13:04 +01:00
Michael Lotz
3da7be22fb EHCI: Current qtd field in qh overlay has no terminate bit.
Don't initialize the current qtd field with the terminate bit as it does
not exist in this field. While the lower 5 bits are documented as being
ignored anyway, this is more correct. Should cause no functional change.
2016-03-12 13:12:35 +01:00
Michael Lotz
ad72f4caed EHCI: Fix alignment check, the mask wasn't wide enough.
As this is only an assert that shouldn't ever be triggered, this doesn't
change anything in normal operation.
2016-03-12 13:12:11 +01:00
Michael Lotz
3648dc8709 EHCI: Style cleanup only, no functional change.
Change < B_OK to != B_OK for status_t results and to < 0 for ids.
2016-03-12 13:11:54 +01:00
autonielx
e3338b15f5 Update translations from Pootle 2016-03-12 06:36:41 +01:00
Jérôme Duval
d2e9e40cbb Updated x86_64 packages for llvm/clang. 2016-03-11 18:38:55 +01:00
John Scipione
27c801a130 BTabView: Draw right border even if 1 tab
The right border is seen on active tabs giving them a bit of a shadow.
2016-03-10 18:57:38 -08:00
John Scipione
a0ea818b3f BTabView: Move first tab over by B_WINDOW_SPACING
BTabView::DrawTabs() got a makeover:
Draw the tab background across the whole view, then draw the tabs,
finally draw the rightmost tab's right border.
2016-03-10 18:14:58 -08:00
John Scipione
31c8f7b193 BTabView: Style fixes 2016-03-10 18:14:40 -08:00
Jérôme Duval
cdd8523736 Update openssl packages. 2016-03-10 17:38:34 +01:00
Automatic Committer
5663c4ad12 Update usb.ids from www.linux-usb.org 2016-03-10 05:20:17 +01:00
Augustin Cavalier
9bd7e4014f Tracker: Restore original PoseView/TitleView names except in BFilePanel.
Should've fixed #12635, but it doesn't. No idea why; perhaps
	request.AddSpecifier("Window", "/boot/home/Desktop");
doesn't work anymore?
2016-03-07 18:04:49 -05:00
Augustin Cavalier
80bc632afd BStatusBar: Restore the old blue-ish color from before the Set*Color changes. 2016-03-07 16:08:00 -05:00
Augustin Cavalier
361738c0ad Revert "PackageInstaller: Attempt to fix 64-bit build."
This reverts commit bb4cd92eae.

We probably should change this API before R2.
2016-03-07 15:52:22 -05:00
Augustin Cavalier
6a5f8112cd PackageInstaller: Make it x86(32-bit) only.
So people aren't tempted to make .pkg files for x86_64/ARM/etc, and
because there should be no reason to have it there.

Discussed with PulkoMandy on IRC.
2016-03-07 15:44:44 -05:00
Augustin Cavalier
bb4cd92eae PackageInstaller: Attempt to fix 64-bit build. 2016-03-07 15:38:24 -05:00
Augustin Cavalier
d3626243b0 PackageInstaller: Fix layout in UninstallView, use BLayoutBuilder. 2016-03-07 15:19:42 -05:00
Augustin Cavalier
eaf0a567c5 PackageInstaller: Merge "InstalledPackages" and "PackageInstaller".
Now if you start LegacyPackageInstaller with no filenames passed, you get
the "installed packages" window, from which you can uninstall stuff.

Fixes #10612.
2016-03-07 15:08:58 -05:00
Augustin Cavalier
f2df0cfe93 interface_guidelines: Add a Haiku-esque stylesheet.
Fixes #11782.
2016-03-07 14:29:24 -05:00
Jérôme Duval
a601d961c9 Update some x86_gcc2 packages affected by haikuporter bug #83. 2016-03-06 20:22:27 +01:00
Jérôme Duval
f7305010a1 Update some x86_gcc2 packages affected by haikuporter bug #83. 2016-03-06 19:51:06 +01:00
Humdinger
e4c8aa778e Added packages for PadBlocker
An input_server filter that blocks the touchpad while typing.
2016-03-06 19:04:51 +01:00
Jérôme Duval
113a5a82f0 Update x86 packages affected by haikuporter bug #83. 2016-03-06 18:42:43 +01:00
Jérôme Duval
8cf23301f6 Update x86_64 packages affected by haikuporter bug #83.
* haikuwebkit yet to rebuild.
2016-03-06 18:15:50 +01:00
Humdinger
5f73d5000d Close Workspaces window with ESC
As discussed on the ML [1].
Try making the Workspaces window really big, hide window tab and border,
assign CTL + ^ to the Workspaces applet. Now you can quickly summon the
applet with CTRL + ^ and equally quickly dismiss it with ESC.

[1] http://www.freelists.org/post/haiku-development/Close-Workspaces-applet-with-ESC
2016-03-06 08:41:11 +01:00
Jérôme Duval
db9f2c2776 Update less packages. 2016-03-05 17:46:12 +01:00
autonielx
b5cf7c05dd Update translations from Pootle 2016-03-05 06:34:10 +01:00
Alexander von Gluck IV
be587ecfe0 radeon_hd: Clean up PCI ID names and add a few missing 2016-03-04 17:12:08 -06:00
Jérôme Duval
214f8799db try to fix gcc5 build on buildbot.
* I'd only reproduce the kernel build failure locally, weird.
2016-03-04 20:23:17 +01:00
Adrien Destugues
d958d336a8 Try to fix the ARM cross-tools build
* Gcc5 does not allow both --with-arch and --with-cpu anymore, so use just --with-cpu.
2016-03-04 20:04:41 +01:00
Adrien Destugues
96e59cca3c SerialConnect: allow custom baudrates from the GUI 2016-03-04 20:01:58 +01:00
Adrien Destugues
3b4f50d3fb Style fix.
Thanks to axel for watching!
2016-03-04 20:01:58 +01:00
Jérôme Duval
319328002a Update gcc packages to 5.3.0. 2016-03-04 17:53:27 +01:00
John Scipione
fad740e391 DeskCalc: Estimate n! using 9 term Stirling's
Approximation for n >= 1000

Factorial
Actual Value (truncated)
Approximation

1000!
4.0238726007709377354370243392300398571937E2567
4.0238726007709377354370243392307         E2567

10000!
2.8462596809170545189064132121198688901480E35659
2.8462596809170545189064132121197         E35659

100000!
2.824229407960347874293421578024535518477E456573
2.824229407960347874293421578024         E456573

Close enough!
2016-03-03 12:03:49 -08:00
John Scipione
261bdbab6d Use 5 factor Stirling's Series 2016-03-03 10:07:25 -08:00
John Scipione
fb4dcb4965 Use Stirling's approximation for n! 2016-03-03 10:07:25 -08:00
Rudolf Cornelissen
d20632f53c app_server: (hopefully) fixed overlay on CMAP8, fixed char leaking on 15 and 16bit depth. See ticket #12613 2016-03-03 16:39:54 +01:00
Automatic Committer
d05a2d9920 Update pci.ids from pciids.sourceforge.net 2016-03-03 05:20:23 +01:00
Alexander G. M. Smith
f765016ffd mail: Detect terminal input, end of file, better argument parsing.
* If the input is a terminal rather than a file or pipe, only then look
  for the single period on a line as end of text.  Also look for end of
  file as an end of the text, so that piped in text works.
* Parse multiple e-mail addresses properly, adding a comma between them
  (a space doesn't work).  Also allow mixing of "to" e-mail addresses
  and command line switches, previously all "to" addresses had to be
  at the end.
* Fewer blank lines in the output, make it look nicer, remove things
  like a redundant display of the body text before text was read.  Also
  no output text when just piping in a message.
* Avoid buffer overrun by using fgets instead of gets.
* Use stderr for text the user likely doesn't want to save, and for
  prompts that would be invisible if stdout was redirected to a file.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2016-03-02 22:11:15 -05:00
Jérôme Duval
f1b2a12f3b Update binutils packages to 2.26.0. 2016-02-29 08:27:41 +01:00
Jérôme Duval
32bca998d6 Update make and nano packages. 2016-02-27 20:03:33 +01:00
Adrien Destugues
93ea83e53d Allow custom baud rates for FTDI serial ports
- Termios: cf{get,set}{i,o}speed can handle arbitrary speed values.
- The value is stored in the appropriate fields of the termios structure
  in this case. The old constants (stored in the flags) are preserved
  for BeOS binary compatibility.
- Adjust the FTDI FT232* driver to accept custom rates, by replacing the
  hardcoded regster values with a function that will compute it
  according to FTDI documentation (confirmed giving the same values for
  the existing baudrates).
2016-02-27 19:08:53 +01:00
Adrien Destugues
44547a899c usb_serial: add PID for FTDI FT231X.
- Same driver as other FTDI chips, but less IO pins.
2016-02-27 15:56:33 +01:00