View Single Post
Old 05-26-2014, 01:02 PM   #117
violent23
Connoisseur
violent23 will become famous soon enoughviolent23 will become famous soon enoughviolent23 will become famous soon enoughviolent23 will become famous soon enoughviolent23 will become famous soon enoughviolent23 will become famous soon enough
 
violent23's Avatar
 
Posts: 83
Karma: 674
Join Date: Oct 2010
Device: Kindle Oasis 2017, Kindle Voyage, Kindle Paperwhite, Kindle Keyboard
Quote:
Originally Posted by PeterT View Post
Code:
<Patch>
patch_name = `Custom left & right margins`
patch_enable = `yes`
# Values for replace
replace_int = FE673C, 02, 02
replace_int = FE6740, 04, 03
replace_int = FE6744, 06, 04
replace_int = FE6748, 08, 05
replace_int = FE674C, 10, 06
replace_int = FE6750, 12, 07
replace_int = FE6754, 14, 08
replace_int = FE6758, 16, 09
</Patch>
I think is what you need. The first value Fe673c is the location in the file being patched, the second 02 is the OLD value, and the third 02 is the new value.

So all I have done is shift the replacement values up by 1
Okay I tried this but the Margin at it's smallest is still the same as what is available on stock and this Patch. The second step up now has a bigger margin. I even tried this.

Code:
<Patch>
patch_name = `Custom left & right margins`
patch_enable = `yes`
# Values for replace
replace_int = FE673C, 02, 03
replace_int = FE6740, 04, 04
replace_int = FE6744, 06, 05
replace_int = FE6748, 08, 06
replace_int = FE674C, 10, 07
replace_int = FE6750, 12, 08
replace_int = FE6754, 14, 09
replace_int = FE6758, 16, 10
</Patch>
But it still has the stock setting for the smallest margin, Moving onto the next margin size it is even larger than your code so it would appear that it works for the rest of the sizes just not the first one.

Do you have any more thoughts on how I can exclude the first margin size from the device?
violent23 is offline   Reply With Quote