Commit Graph

161 Commits

Author SHA1 Message Date
looncraz
fa19dd4470 apps: Convert to using Set*UIColor.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0045-0075, 0077-0087 from looncraz, unmodified.
2016-01-04 07:33:09 -05:00
John Scipione
0f0de97fed Nebula: Convert fixed length char to BString 2015-07-08 15:33:10 -07:00
John Scipione
a11f9c281c Nebula: Internationalize strings 2015-07-08 15:33:08 -07:00
John Scipione
5a17435fc3 Nebula: whitespace style fixes only, no functional changes 2015-07-08 15:33:05 -07:00
John Scipione
ab2bb7fe61 Nebula: Use size_t instead of int32 for iterator 2015-07-08 15:33:03 -07:00
John Scipione
1a1667fc1d Nebula: Use B_PRId32 instead of %ld 2015-07-08 15:33:01 -07:00
John Scipione
3ad91dc4f1 Nebula: Convert fixed length char array to BString 2015-07-08 15:32:37 -07:00
John Scipione
d1c13fd009 Nebula: Move prefs layout into constructor.
Only setting the targets is done in AttachedToWindow()
Some style fixes also applied
2015-07-08 15:32:34 -07:00
John Scipione
dd822ba860 Nebula: Style screen saver prefs
* Make the title the default font and bold like other screen savers
* Don't center the copyright text, left align
* Put spacing strut between title/copyright and the rest
* Put the pop-up menus in a grid, make them variable width
* Add some more glue so items grow apart more nicely
2015-07-08 15:32:18 -07:00
Augustin Cavalier
e274ee171a screen_savers/Nebula: Cleanup DrawStars.
The assembly I converted this from didn't look hand-generated, which
probably explains why it was so convoluted.

No functional change intended (the generated code will change, though.)
2015-07-08 10:57:20 -04:00
Augustin Cavalier
548f42a880 screen_savers/Nebula: Initialize "fStarted" member.
CID 1311316.
2015-07-08 10:43:10 -04:00
Augustin Cavalier
43b42b98fe screen_savers/Nebula: Create header files for Draw.c/DrawStars.c. 2015-07-08 10:43:07 -04:00
Augustin Cavalier
01732795a5 screen_savers/Nebula: Add/update copyright headers to all files. 2015-07-08 10:43:05 -04:00
Augustin Cavalier
693e10ef55 screen_savers/Nebula: Restore "internal resolution" setting.
However, now it defaults to the screen resolution.
2015-07-08 10:43:02 -04:00
Augustin Cavalier
35c984142e screen_savers/Nebula: Rename variable in DrawStars.c.
Lots of cleanup here still needed, but it's OK for now.
2015-07-07 20:06:29 -04:00
Augustin Cavalier
d3a89219a7 screen_savers/Nebula: Fix GCC4 warning. 2015-07-07 20:05:36 -04:00
Augustin Cavalier
88f0064617 screen_savers/Nebula: Switch to using the Layout API for settings.
Also clean up bits of the style at the same time.
2015-07-07 20:05:30 -04:00
Augustin Cavalier
6b37a7d187 screen_savers/Nebula: Update license header and copyright. 2015-07-07 20:05:27 -04:00
Augustin Cavalier
dc9d1c8290 screen_savers/Nebula: Get rid of the version string.
This isn't needed anymore, now that Nebula is part of Haiku.
2015-07-07 20:05:25 -04:00
Augustin Cavalier
91490e67b8 screen_savers/Nebula: Get rid of the "internal horizontal resolution".
I don't know why this was in there -- possibly for older machines
that couldn't do their fullscreen resolution at 60fps? Which doesn't
make a lot of sense, since there's a frame-limiting option too.
2015-07-07 20:05:22 -04:00
Augustin Cavalier
e58a469849 screen_savers/Nebula: Remove optimization CFLAGS, let the compiler decide. 2015-07-07 20:05:19 -04:00
Augustin Cavalier
2f4d14b7e8 screen_savers/Nebula: Switch to using a Jamfile. 2015-07-07 20:05:16 -04:00
Augustin Cavalier
c5fe084ea4 screen_savers/Nebula: Make STAR_WIDTH an argument instead of a #define. 2015-07-07 20:05:13 -04:00
Augustin Cavalier
9bc305b2ed screen_savers/Nebula: Remove assembly comments from DrawStars.c. 2015-07-07 20:05:10 -04:00
Augustin Cavalier
413d14fb36 screen_savers/Nebula: Convert draw_stars.S to C.
Hand-translated. I left the assembly in as comments for easy analysis,
I'll remove it in the next commit.
2015-07-07 20:05:08 -04:00
Augustin Cavalier
c93cc19069 screen_savers/Nebula: Remove assembly comments from Draw.c. 2015-07-07 20:05:05 -04:00
Augustin Cavalier
e0f44d02f4 screen_savers/Nebula: Convert draw.S to C.
Hand-translated. I left the assembly in as comments for easy analysis,
I'll remove it in the next commit.

(I didn't do this on my own, I had help.)
2015-07-07 20:05:02 -04:00
Augustin Cavalier
1461b362da screen_savers: Import Nebula.
This is an unmodified version of Axel's "Nebula" screensaver,
except with the RSRC converted to an RDEF.
2015-07-07 20:04:59 -04:00
Philippe Saint-Pierre
6b05e9db3d CID 1273486: change from boolean to bitwise operator
Typo confirmed by looking at the corresponding source file from elsewhere.
+ some style fixes
2015-06-25 18:03:41 -04:00
Adrien Destugues
ad077e2bd2 SpiderSaver: PVS 2044.
Missing std::nothrow.
2015-04-28 22:00:32 +02:00
Murai Takashi
932b333fa2 Fix called C++ object pointer is null
Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>

Fixes #9904.
2014-11-20 10:45:15 +01:00
Adrien Destugues
2baa894c76 icons screensaver: double free when in RandomSaver
RandomSaver apparently calls StopSaver two times, and Icons was having a
double free in that case.

Fixes #10957.
2014-10-13 17:20:50 +02:00
Adrien Destugues
a3cdc7c588 Gravity and GLife: fix crash on start.
Locking the GL context from a GLView subclass constructor can't work, as
it isn't ready yet. Move the initial setup to AttachedToWindow instead.

Fixes #8898, #10469.
2014-10-13 15:29:46 +02:00
Adrien Destugues
1333f5f77b Fix GL screensavers in non-direct mode.
DirectDraw is called only in direct drawing mode (BDirectWindow). Our GL
kit also works fine (but slower) in indirect mode (standard BWindow, GL
stuff rendered offscreen then blitted). However, for this to work we
need the screensavers to actually do something. Use the
BScreenSaver::Draw method, which is called in either case.

This makes it possible to use indirect mode for the preview of GL
screensavers. The performance isn't really a problem on the very small
preview (160x200 pixels).

Fixes GLife and Gravity. Flurry still crashes Mesa.
2014-08-14 11:37:07 +02:00
Oliver Tappe
220d040227 Use libstdc++, libsupc++ and libgcc from gcc_syslibs.
* Instead of faking libstdc++.so from libstdc++.a, use libstdc++.so
  from the gcc_syslibs build feature for everything except x86_gcc2.
* Use libgcc_s.so from the gcc_syslibs build feature for everything but
  x86_gcc2 (which still carries libgcc as part of libroot.so).
* Drop filtering of libgcc objects for libroot, as that is no longer
  necessary since we're only using libgcc-as-single-object for libroot
  with x86_gcc2, where the filtered object file doesn't exist. Should
  the objects that used to be filtered cause any problems as part of
  libgcc_s.so, we can always filter them as part of the gcc build.
* Use libsupc++.so from the gcc_syslibs build feature for everything but
  x86_gcc2.
* Adjust all Jamfiles accordingly.
* Deactivate building of faked libstdc++.so for non-x86-gcc2. For
  x86_gcc2, we still build libstdc++.so from the sources in the Haiku
  source tree as part of the Haiku build .
* Put gcc_syslibs package onto the image, when needed.
2014-08-13 13:32:44 +02:00
Humdinger
6229115bac More small C++11 tweaks. 2014-06-16 19:34:56 +02:00
John Scipione
979af5a8a2 IFSSaver: Don't DirectDraw for preview.
The ScreenSaver window is now a BDirectWindow, but, _DrawFractals() makes
the assumption that a direct window means that the screen saver is running full
screen, so, we need to make sure we draw the preview using the
DrawBitmapAsync() method.

Fixes #10832
2014-05-15 17:42:12 -04:00
John Scipione
f5e32a8614 IFS: Style fixes 2014-05-15 17:41:48 -04:00
John Scipione
49ea2debde IFSSaver: reverse these for consistency. 2014-05-15 17:41:47 -04:00
John Scipione
da679effb4 IFSSaver: remove fBounds variable 2014-05-15 17:41:45 -04:00
John Scipione
664720405e IFSSaver: style fix, check if NULL explicitly 2014-05-15 17:41:44 -04:00
John Scipione
694d9bc1e6 IFSSaver: style fixes 2014-05-15 17:41:39 -04:00
John Scipione
ca7ee40437 IFSSaver: Add some better error checking 2014-05-15 17:40:51 -04:00
John Scipione
3daf447497 IFSSaver: Use single-precision floating point math 2014-05-15 17:40:51 -04:00
John Scipione
71d273ad49 IFSSaver: cast to bigtime_t, not uint64 2014-05-15 17:40:50 -04:00
John Scipione
fd18c60886 IFSSaver: NULL check style fix 2014-05-15 17:40:50 -04:00
John Scipione
98b054fe02 IFS: Style fixes 2014-05-15 17:40:49 -04:00
Stephan Aßmus
e443b44ab8 IFS: Prevent division by zero...
...when the BRect passed to the constructor is not valid.
Should fix ticket #10832. Untested.
2014-05-13 16:47:22 +02: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