Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 08-28-2011, 08:06 AM   #1
Mark Nord
2B || !2B
Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.
 
Posts: 851
Karma: 194010
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Some notes about the reuse of defsked sources

While experimenting with kbook.kbookPage.draw I came across two (2) issues with defsked sources.
  1. parentheses in calculations are missing
    Code:
    Original output:
    	rct.x = naturalBounds.x + naturalBounds.width - rct.width / 2;
    needs to be
    	rct.x = naturalBounds.x + (naturalBounds.width - rct.width) / 2;
  2. arrays needs to be initialized before use

As I'm not into phyton it is way over my head to change anything in igorsk great scripts, but just want to let you know.

Last edited by Mark Nord; 08-28-2011 at 02:32 PM. Reason: typos
Mark Nord is offline   Reply With Quote
Old 08-29-2011, 07:20 PM   #2
quisvir
Addict
quisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animals
 
quisvir's Avatar
 
Posts: 238
Karma: 6875
Join Date: Feb 2009
Location: Netherlands
Device: Kindle PW2
Thanks for the heads-up Mark
quisvir is offline   Reply With Quote
Advert
Old 09-06-2011, 10:49 AM   #3
quisvir
Addict
quisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animals
 
quisvir's Avatar
 
Posts: 238
Karma: 6875
Join Date: Feb 2009
Location: Netherlands
Device: Kindle PW2
I came across a similar issue that other coders might want to be aware of (although it's pretty obvious if you encounter it): switch statements appear to be missing their break statements. So not only the matching case is executed, but all subsequent cases as well. In some cases this might be intentional, but I've seen some functions malfunction for this reason.
quisvir is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reuse of Images crutledge Sigil 3 05-30-2010 08:55 AM
PRS-600 Reuse PRS-505 original cover? Pablo Sony Reader 8 02-27-2010 07:14 AM
Reuse a cracked screen.. conundrum Sony Reader 2 02-13-2010 09:30 AM
PRS-600 Notes on Notes (not good) FlyFree Sony Reader 24 12-08-2009 07:23 PM
1.6 sources Shaggy iRex 1 06-24-2009 05:16 AM


All times are GMT -4. The time now is 06:11 AM.


MobileRead.com is a privately owned, operated and funded community.