[haiku-commits] haiku: hrev50770 - in src/servers/app/font: . src/servers/app

  • From: waddlesplash@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 17 Dec 2016 20:04:12 +0100 (CET)

hrev50770 adds 2 changesets to branch 'master'
old head: 75b90c42e52be4d2aa7130aef33060d01e512d46
new head: 4b235ebeb949718aa38b30b74e4c9ef57c37281b
overview: 
http://cgit.haiku-os.org/haiku/log/?qt=range&q=4b235ebeb949+%5E75b90c42e52b

----------------------------------------------------------------------------

7127f7320a5f: FontEngine: Fix warnings (and thus the build) of subpixel 
rendering code.

4b235ebeb949: test_app_server: Fix the build.
  
  It doesn't work, however; it throws an error message about failing to connect
  to a port, which I presume was caused by the launch_daemon changes. If
  Axel could take a look at it, that'd be much appreciated...

                              [ Augustin Cavalier <waddlesplash@xxxxxxxxx> ]

----------------------------------------------------------------------------

3 files changed, 5 insertions(+), 5 deletions(-)
src/servers/app/TestServerLoopAdapter.cpp | 4 ++--
src/servers/app/TestServerLoopAdapter.h   | 2 +-
src/servers/app/font/FontEngine.cpp       | 4 ++--

############################################################################

Commit:      7127f7320a5fdbe227a04076fe0373dbc7ccb437
URL:         http://cgit.haiku-os.org/haiku/commit/?id=7127f7320a5f
Author:      Augustin Cavalier <waddlesplash@xxxxxxxxx>
Date:        Sat Dec 17 18:58:55 2016 UTC

FontEngine: Fix warnings (and thus the build) of subpixel rendering code.

----------------------------------------------------------------------------

diff --git a/src/servers/app/font/FontEngine.cpp 
b/src/servers/app/font/FontEngine.cpp
index 0312b09..7220b8b 100644
--- a/src/servers/app/font/FontEngine.cpp
+++ b/src/servers/app/font/FontEngine.cpp
@@ -423,13 +423,13 @@ decompose_ft_bitmap_subpix(const FT_Bitmap& bitmap, int 
x, int y,
                y += bitmap.rows;
                pitch = -pitch;
        }
-       for (int i = 0; i < bitmap.rows; i++) {
+       for (unsigned int i = 0; i < bitmap.rows; i++) {
                sl.reset_spans();
 
                if (bitmap.pixel_mode == FT_PIXEL_MODE_MONO) {
                        // font has built-in mono bitmap
                        agg::bitset_iterator bits(buf, 0);
-                       for (int j = 0; j < bitmap.width; j++) {
+                       for (unsigned int j = 0; j < bitmap.width; j++) {
                                if (bits.bit()) {
                                        sl.add_cell(x + j,
                                                agg::cover_full, 
agg::cover_full, agg::cover_full);

############################################################################

Revision:    hrev50770
Commit:      4b235ebeb949718aa38b30b74e4c9ef57c37281b
URL:         http://cgit.haiku-os.org/haiku/commit/?id=4b235ebeb949
Author:      Augustin Cavalier <waddlesplash@xxxxxxxxx>
Date:        Sat Dec 17 18:59:45 2016 UTC

test_app_server: Fix the build.

It doesn't work, however; it throws an error message about failing to connect
to a port, which I presume was caused by the launch_daemon changes. If
Axel could take a look at it, that'd be much appreciated...

----------------------------------------------------------------------------

diff --git a/src/servers/app/TestServerLoopAdapter.cpp 
b/src/servers/app/TestServerLoopAdapter.cpp
index a884b97..90d5d18 100644
--- a/src/servers/app/TestServerLoopAdapter.cpp
+++ b/src/servers/app/TestServerLoopAdapter.cpp
@@ -44,12 +44,12 @@ TestServerLoopAdapter::~TestServerLoopAdapter()
 }
 
 
-bool
+status_t
 TestServerLoopAdapter::Run()
 {
        rename_thread(find_thread(NULL), "picasso");
        _message_thread((void*)this);
-       return true;
+       return B_OK;
 }
 
 
diff --git a/src/servers/app/TestServerLoopAdapter.h 
b/src/servers/app/TestServerLoopAdapter.h
index f3d2879..f220d31 100644
--- a/src/servers/app/TestServerLoopAdapter.h
+++ b/src/servers/app/TestServerLoopAdapter.h
@@ -26,7 +26,7 @@ public:
 
        // MessageLooper interface
        virtual port_id                         MessagePort() const { return 
fMessagePort; }
-       virtual bool                            Run();
+       virtual status_t                        Run();
 
        // BApplication interface
        virtual void                            MessageReceived(BMessage* 
message) = 0;


Other related posts: