Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset f5191b4 in mainline for uspace/srv/hid/display/window.c


Ignore:
Timestamp:
2020-01-28T09:17:35Z (12 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
4645b2c
Parents:
cc90846
git-author:
Jiri Svoboda <jiri@…> (2020-01-27 19:17:32)
git-committer:
Jiri Svoboda <jiri@…> (2020-01-28 09:17:35)
Message:

Fix unit test failures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/window.c

    rcc90846 rf5191b4  
    301301                wnd->pixelmap.height = dims.y;
    302302                wnd->pixelmap.data = alloc.pixels;
    303         }
    304 
    305         if (wnd->pixelmap.data == NULL) {
    306                 rc = ENOMEM;
    307                 goto error;
     303
     304                if (wnd->pixelmap.data == NULL) {
     305                        rc = ENOMEM;
     306                        goto error;
     307                }
    308308        }
    309309
     
    382382        }
    383383
     384        /* This can happen in unit tests */
     385        if (wnd->bitmap == NULL)
     386                return EOK;
     387
    384388        return gfx_bitmap_render(wnd->bitmap, brect, &wnd->dpos);
    385389}
Note: See TracChangeset for help on using the changeset viewer.