It definitively are the two definitions you mentioned inside lv_drv_conf.h. I’ve just checked and successfully built the demo app with two different screen sizes.
My guess is that you need a clean rebuild after changing the values. For some reason make doesn’t seem to create a dependency upon the lv_drv_conf.h file and changes to it don’t lead to proper recompiles.