Ignore:
Timestamp:
2018-04-15T09:35:04Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c1f44ca
Parents:
8ebe212
Message:

More ccheck fixes, sometimes with manual intervention.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/compositor/compositor.c

    r8ebe212 r18b6a88  
    488488                                                if (y_bnd_ghost == y_dmg_ghost) {
    489489                                                        for (sysarg_t x = x_dmg_ghost - vp->pos.x;
    490                                                                     x < x_dmg_ghost - vp->pos.x + w_dmg_ghost; ++x) {
     490                                                            x < x_dmg_ghost - vp->pos.x + w_dmg_ghost; ++x) {
    491491                                                                ghost_color = surface_get_pixel(vp->surface,
    492492                                                                    x, y_dmg_ghost - vp->pos.y);
     
    498498                                                if (y_bnd_ghost + h_bnd_ghost == y_dmg_ghost + h_dmg_ghost) {
    499499                                                        for (sysarg_t x = x_dmg_ghost - vp->pos.x;
    500                                                                     x < x_dmg_ghost - vp->pos.x + w_dmg_ghost; ++x) {
     500                                                            x < x_dmg_ghost - vp->pos.x + w_dmg_ghost; ++x) {
    501501                                                                ghost_color = surface_get_pixel(vp->surface,
    502502                                                                    x, y_dmg_ghost - vp->pos.y + h_dmg_ghost - 1);
     
    508508                                                if (x_bnd_ghost == x_dmg_ghost) {
    509509                                                        for (sysarg_t y = y_dmg_ghost - vp->pos.y;
    510                                                                     y < y_dmg_ghost - vp->pos.y + h_dmg_ghost; ++y) {
     510                                                            y < y_dmg_ghost - vp->pos.y + h_dmg_ghost; ++y) {
    511511                                                                ghost_color = surface_get_pixel(vp->surface,
    512512                                                                    x_dmg_ghost - vp->pos.x, y);
     
    518518                                                if (x_bnd_ghost + w_bnd_ghost == x_dmg_ghost + w_dmg_ghost) {
    519519                                                        for (sysarg_t y = y_dmg_ghost - vp->pos.y;
    520                                                                     y < y_dmg_ghost - vp->pos.y + h_dmg_ghost; ++y) {
     520                                                            y < y_dmg_ghost - vp->pos.y + h_dmg_ghost; ++y) {
    521521                                                                ghost_color = surface_get_pixel(vp->surface,
    522522                                                                    x_dmg_ghost - vp->pos.x + w_dmg_ghost - 1, y);
     
    562562                                                while (count-- != 0) {
    563563                                                        *dst = (*src & 0xff000000) ? *src : *dst;
    564                                                         ++dst; ++src;
     564                                                        ++dst;
     565                                                        ++src;
    565566                                                }
    566567                                        }
     
    13471348                        if (fy > 0) {
    13481349#if ANIMATE_WINDOW_TRANSFORMS == 0
    1349                                 if (scale) win->fy *= fy;
     1350                                if (scale)
     1351                                        win->fy *= fy;
    13501352#endif
    13511353#if ANIMATE_WINDOW_TRANSFORMS == 1
     
    14491451
    14501452        if (w_i == 0 || h_i == 0) {
    1451                 rect1->x = x_u; rect2->x = 0; rect3->x = 0; rect4->x = 0;
    1452                 rect1->y = y_u; rect2->y = 0; rect3->y = 0; rect4->y = 0;
    1453                 rect1->w = w_u; rect2->w = 0; rect3->w = 0; rect4->w = 0;
    1454                 rect1->h = h_u; rect2->h = 0; rect3->h = 0; rect4->h = 0;
     1453                rect1->x = x_u;
     1454                rect2->x = 0;
     1455                rect3->x = 0;
     1456                rect4->x = 0;
     1457
     1458                rect1->y = y_u;
     1459                rect2->y = 0;
     1460                rect3->y = 0;
     1461                rect4->y = 0;
     1462
     1463                rect1->w = w_u;
     1464                rect2->w = 0;
     1465                rect3->w = 0;
     1466                rect4->w = 0;
     1467
     1468                rect1->h = h_u;
     1469                rect2->h = 0;
     1470                rect3->h = 0;
     1471                rect4->h = 0;
    14551472        } else {
    14561473                rect1->x = x_u;
     
    14771494#endif
    14781495
    1479 static errno_t comp_abs_move(input_t *input, unsigned x , unsigned y,
     1496static errno_t comp_abs_move(input_t *input, unsigned x, unsigned y,
    14801497    unsigned max_x, unsigned max_y)
    14811498{
     
    15261543        sysarg_t cursor_height;
    15271544        surface_get_resolution(pointer->cursor.states[pointer->state],
    1528              &cursor_width, &cursor_height);
     1545            &cursor_width, &cursor_height);
    15291546
    15301547        if (pointer->pos.x + dx < viewport_bound_rect.x)
     
    17881805
    17891806#if ANIMATE_WINDOW_TRANSFORMS == 0
    1790                 comp_damage(dmg_rect1.x, dmg_rect1.y, dmg_rect1.w, dmg_rect1.h);
    1791                 comp_damage(dmg_rect2.x, dmg_rect2.y, dmg_rect2.w, dmg_rect2.h);
    1792                 comp_damage(dmg_rect3.x, dmg_rect3.y, dmg_rect3.w, dmg_rect3.h);
    1793                 comp_damage(dmg_rect4.x, dmg_rect4.y, dmg_rect4.w, dmg_rect4.h);
     1807        comp_damage(dmg_rect1.x, dmg_rect1.y, dmg_rect1.w, dmg_rect1.h);
     1808        comp_damage(dmg_rect2.x, dmg_rect2.y, dmg_rect2.w, dmg_rect2.h);
     1809        comp_damage(dmg_rect3.x, dmg_rect3.y, dmg_rect3.w, dmg_rect3.h);
     1810        comp_damage(dmg_rect4.x, dmg_rect4.y, dmg_rect4.w, dmg_rect4.h);
    17941811#endif
    17951812
     
    18261843    keymod_t mods, wchar_t c)
    18271844{
    1828         bool win_transform = (mods & KM_ALT) && (
    1829             key == KC_W || key == KC_S || key == KC_A || key == KC_D ||
     1845        bool win_transform = (mods & KM_ALT) &&
     1846            (key == KC_W || key == KC_S || key == KC_A || key == KC_D ||
    18301847            key == KC_Q || key == KC_E || key == KC_R || key == KC_F);
    1831         bool win_resize = (mods & KM_ALT) && (
    1832             key == KC_T || key == KC_G || key == KC_B || key == KC_N);
    1833         bool win_opacity = (mods & KM_ALT) && (
    1834             key == KC_C || key == KC_V);
     1848        bool win_resize = (mods & KM_ALT) &&
     1849            (key == KC_T || key == KC_G || key == KC_B || key == KC_N);
     1850        bool win_opacity = (mods & KM_ALT) && (key == KC_C || key == KC_V);
    18351851        bool win_close = (mods & KM_ALT) && (key == KC_X);
    18361852        bool win_switch = (mods & KM_ALT) && (key == KC_TAB);
    1837         bool viewport_move = (mods & KM_ALT) && (
    1838             key == KC_I || key == KC_K || key == KC_J || key == KC_L);
    1839         bool viewport_change = (mods & KM_ALT) && (
    1840             key == KC_O || key == KC_P);
     1853        bool viewport_move = (mods & KM_ALT) &&
     1854            (key == KC_I || key == KC_K || key == KC_J || key == KC_L);
     1855        bool viewport_change = (mods & KM_ALT) && (key == KC_O || key == KC_P);
    18411856        bool kconsole_switch = (key == KC_PAUSE) || (key == KC_BREAK);
    18421857        bool filter_switch = (mods & KM_ALT) && (key == KC_Y);
     
    21202135                if (filter_index == 0) {
    21212136                        filter = filter_nearest;
    2122                 }
    2123                 else {
     2137                } else {
    21242138                        filter = filter_bilinear;
    21252139                }
Note: See TracChangeset for help on using the changeset viewer.