Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Someone
Wednesday, January 3rd, 2007 at 8:45:44am UTC 

This post has 1 comment thread shown at the end of this page.

  1. Index: lcd-16bit.c
  2. ===================================================================
  3. RCS file: /cvsroot/rockbox/firmware/drivers/lcd-16bit.c,v
  4. retrieving revision 1.39
  5. diff -u -r1.39 lcd-16bit.c
  6. --- lcd-16bit.c 25 Sep 2006 12:45:13 -0000       1.39
  7. +++ lcd-16bit.c 3 Jan 2007 06:09:46 -0000
  8. @@ -238,7 +238,7 @@
  9.  /* Set a single pixel */
  10.  void lcd_drawpixel(int x, int y)
  11.  {
  12. -    if (((unsigned)x < LCD_WIDTH) && ((unsigned)y < LCD_HEIGHT))
  13. +    //if (((unsigned)x < LCD_WIDTH) && ((unsigned)y < LCD_HEIGHT))
  14.          lcd_fastpixelfuncs[drawmode](LCDADDR(x, y));
  15.  }
  16.  
  17. @@ -295,7 +295,7 @@
  18.  
  19.      for (i = 0; i < numpixels; i++)
  20.      {
  21. -        if (((unsigned)x < LCD_WIDTH) && ((unsigned)y < LCD_HEIGHT))
  22. +        //if (((unsigned)x < LCD_WIDTH) && ((unsigned)y < LCD_HEIGHT))
  23.              pfunc(LCDADDR(x, y));
  24.  
  25.          if (d < 0)
  26. @@ -318,7 +318,7 @@
  27.  {
  28.      int x, width;
  29.      unsigned bits = 0;
  30. -    enum fill_opt fillopt = OPT_NONE;
  31. +    //enum fill_opt fillopt = OPT_NONE;
  32.      fb_data *dst, *dst_end;
  33.      lcd_fastpixelfunc_type *pfunc = lcd_fastpixelfuncs[drawmode];
  34.  
  35. @@ -331,8 +331,8 @@
  36.      }
  37.      
  38.      /* nothing to draw? */
  39. -    if (((unsigned)y >= LCD_HEIGHT) || (x1 >= LCD_WIDTH) || (x2 < 0))
  40. -        return; 
  41. +    //if (((unsigned)y >= LCD_HEIGHT) || (x1 >= LCD_WIDTH) || (x2 < 0))
  42. +        //return; 
  43.      
  44.      /* clipping */
  45.      if (x1 < 0)
  46. @@ -346,42 +346,42 @@
  47.          {
  48.              if (!lcd_backdrop)
  49.              {
  50. -                fillopt = OPT_SET;
  51. +                //fillopt = OPT_SET;
  52.                  bits = bg_pattern;
  53.              }
  54. -            else
  55. -                fillopt = OPT_COPY;
  56. +            //else
  57. +                //fillopt = OPT_COPY;
  58.          }
  59.      }
  60.      else
  61.      {
  62.          if (drawmode & DRMODE_FG)
  63.          {
  64. -            fillopt = OPT_SET;
  65. +            //fillopt = OPT_SET;
  66.              bits = fg_pattern;
  67.          }
  68.      }
  69.      dst = LCDADDR(x1, y);
  70.      width = x2 - x1 + 1;
  71.      
  72. -    switch (fillopt)
  73. -    {
  74. -      case OPT_SET:
  75. -        memset16(dst, bits, width);
  76. -        break;
  77. -
  78. -      case OPT_COPY:
  79. -        memcpy(dst, (void *)((long)dst + lcd_backdrop_offset),
  80. -               width * sizeof(fb_data));
  81. -        break;
  82. +    //switch (fillopt)
  83. +    //{
  84. +      //case OPT_SET:
  85. +       // memset16(dst, bits, width);
  86. +        //break;
  87. +
  88. +      //case OPT_COPY:
  89. +        //memcpy(dst, (void *)((long)dst + lcd_backdrop_offset),
  90. +               //width * sizeof(fb_data));
  91. +        //break;
  92.  
  93. -      case OPT_NONE:
  94. +      //case OPT_NONE:
  95.          dst_end = dst + width;
  96.          do
  97.              pfunc(dst++);
  98.          while (dst < dst_end);
  99. -        break;
  100. -    }
  101. +        //break;
  102. +    //}
  103.  }
  104.  
  105.  /* Draw a vertical line (optimised) */
  106. @@ -400,8 +400,8 @@
  107.      }
  108.  
  109.      /* nothing to draw? */
  110. -    if (((unsigned)x >= LCD_WIDTH) || (y1 >= LCD_HEIGHT) || (y2 < 0))
  111. -        return; 
  112. +    //if (((unsigned)x >= LCD_WIDTH) || (y1 >= LCD_HEIGHT) || (y2 < 0))
  113. +        //return; 
  114.      
  115.      /* clipping */
  116.      if (y1 < 0)
  117. Index: lcd-ipodvideo.c
  118. ===================================================================
  119. RCS file: /cvsroot/rockbox/firmware/drivers/lcd-ipodvideo.c,v
  120. retrieving revision 1.17
  121. diff -u -r1.17 lcd-ipodvideo.c
  122. --- lcd-ipodvideo.c     17 Aug 2006 08:37:35 -0000   1.17
  123. +++ lcd-ipodvideo.c     3 Jan 2007 05:08:19 -0000
  124. @@ -166,14 +166,14 @@
  125.  
  126.      /* wait for it to be write ready */
  127.      while ((inw(0x30030000) & 0x2) == 0);
  128. -
  129.      {
  130. -        unsigned short *src = (unsigned short*)&lcd_framebuffer[y][x];
  131. -        unsigned short *end = &src[LCD_WIDTH * height];
  132. -        int line_rem = (LCD_WIDTH - width);
  133. -        while (src < end) {
  134. -            /* Duff's Device to unroll loop */
  135. -            register int count = width ;
  136. +    }
  137. +    unsigned short *src = (unsigned short*)&lcd_framebuffer[y][x];
  138. +    unsigned short *end = &src[LCD_WIDTH * height];
  139. +    int line_rem = (LCD_WIDTH - width);
  140. +    while (src < end) {
  141. +    /* Duff's Device to unroll loop */
  142. +        register int count = width ;
  143.              register int n=( count + 7 ) / 8;
  144.              switch( count % 8 ) {
  145.                  case 0: do{ outw(*(src++), 0x30000000);
  146. @@ -186,10 +186,10 @@
  147.                  case 1:     outw(*(src++), 0x30000000);
  148.                } while(--n>0);
  149.              }
  150. -            src += line_rem;
  151. -        }
  152. +        src += line_rem;
  153.      }
  154.  
  155. +
  156.      /* Top-half of original lcd_bcm_finishup() function */
  157.      outw(0x31, 0x30030000);
  158.  

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus

comments on this paste

kswqzcx yitphdgjn

Posted By: qugs yxqhe (qugs yxqhe)

Posted: June 28th, 2007 at 1:52am UTC

mezniwou pdswrfu bpfwjvo lofskvn dvgsb solenub csrphqg