Skip to content

Commit

Permalink
libminuitwrp updates for Pixel 3 devices
Browse files Browse the repository at this point in the history
Fix rules for adf graphics to detect their presence when ninja
make files are used.
Change pixelflinger graphics mode so that colors display properly
on the Pixel 3

Change-Id: Ie7181be6c5e1e9a007b58fd798b2cef787ce4a01
  • Loading branch information
Dees-Troy committed Jan 16, 2019
1 parent d842fe1 commit 2f68527
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion minuitwrp/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ else
LOCAL_C_INCLUDES += $(commands_recovery_local_path)/minuitwrp/include
# The header files required for adf graphics can cause compile errors
# with adf graphics.
ifneq ($(wildcard system/core/adf/Android.mk),)
ifneq ($(wildcard system/core/adf/Android.*),)
LOCAL_CFLAGS += -DHAS_ADF
LOCAL_SRC_FILES += graphics_adf.cpp
LOCAL_WHOLE_STATIC_LIBRARIES += libadf
Expand Down
1 change: 0 additions & 1 deletion minuitwrp/graphics_adf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ static int adf_interface_init(adf_pdata *pdata)
static int adf_device_init(adf_pdata *pdata, adf_device *dev)
{
adf_id_t intf_id;
int intf_fd;
int err;

err = adf_find_simple_post_configuration(dev, &pdata->format, 1, &intf_id,
Expand Down
4 changes: 2 additions & 2 deletions minuitwrp/graphics_drm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ static drm_surface *drm_create_surface(int width, int height) {
printf("setting DRM_FORMAT_ABGR8888 and GGL_PIXEL_FORMAT_BGRA_8888, GGL_PIXEL_FORMAT may not match!\n");
#elif defined(RECOVERY_RGBX)
format = DRM_FORMAT_XBGR8888;
base_format = GGL_PIXEL_FORMAT_BGRA_8888;
printf("setting DRM_FORMAT_XBGR8888 and GGL_PIXEL_FORMAT_BGRA_8888, GGL_PIXEL_FORMAT may not match!\n");
base_format = GGL_PIXEL_FORMAT_RGBA_8888;
printf("setting DRM_FORMAT_XBGR8888 and GGL_PIXEL_FORMAT_RGBA_8888\n");
#else
format = DRM_FORMAT_RGB565;
base_format = GGL_PIXEL_FORMAT_BGRA_8888;
Expand Down

0 comments on commit 2f68527

Please sign in to comment.