Changeset 14082
- Timestamp:
- 02/12/12 21:06:25 (12 years ago)
- Location:
- titan
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/keylock/keylock.c
r13806 r14082 41 41 42 42 restorescreen(bg, keylock); 43 blitfb( );43 blitfb(0); 44 44 } 45 45 -
titan/plugins/permtime/permtime.c
r13809 r14082 32 32 } 33 33 restorescreen(bg, permtime); 34 blitfb( );34 blitfb(0); 35 35 permtimethread = NULL; 36 36 return; -
titan/titan/autores.h
r13961 r14082 43 43 clearscreennolock(autores); 44 44 restorescreen(bg, autores); 45 blitfb( );45 blitfb(0); 46 46 status.screencalc = tmpscreencalc; 47 47 sleep(1); -
titan/titan/download.h
r13961 r14082 116 116 clearscreennolock(download); 117 117 restorescreen(bg, download); 118 blitfb( );118 blitfb(0); 119 119 status.screencalc = tmpscreencalc; 120 120 sleep(1); -
titan/titan/fb.h
r13190 r14082 265 265 } 266 266 267 void blitfb() 268 { 267 //flag > 0 = animation 268 void blitfb(int flag) 269 { 270 int i = 0, max = 1, step = 0; 271 269 272 if(skinfb == NULL) return; 270 273 #ifndef NOHWBLIT … … 305 308 bltData.dst_right = (fb->width - rightoffset) / 2; 306 309 else 307 bltData.dst_right 310 bltData.dst_right = fb->width - rightoffset; 308 311 if(mode3d == 2) 309 312 bltData.dst_bottom = (fb->height - bottomoffset) / 2; … … 313 316 bltData.dstMemBase = STMFBGP_FRAMEBUFFER; 314 317 315 if (ioctl(fb->fd, STMFBIO_BLT, &bltData) < 0) 316 { 317 perr("ioctl STMFBIO_BLT"); 318 } 319 if(ioctl(fb->fd, STMFBIO_SYNC_BLITTER) < 0) 320 { 321 perr("ioctl STMFBIO_SYNC_BLITTER"); 322 } 323 324 if(mode3d != 0) 325 { 326 if(mode3d == 1) 327 bltData.dst_left = 0 + leftoffset + ((fb->width - rightoffset) / 2); 328 if(mode3d == 2) 329 bltData.dst_top = 0 + topoffset + ((fb->height - bottomoffset) / 2); 330 bltData.dst_right = fb->width - rightoffset; 331 bltData.dst_bottom = fb->height - bottomoffset; 318 if(flag > 0 && mode3d == 0) 319 { 320 int width = (fb->width - rightoffset) - (0 + leftoffset); 321 max = 50; 322 bltData.dst_left = (width / 2) - 1; 323 bltData.dst_right = (width / 2) + 1; 324 step = width / 50; 325 } 326 327 for(i = 0; i < max; i++) 328 { 329 330 if(flag == 1) 331 { 332 int tmpleft = bltData.dst_left - step; 333 int tmpright = bltData.dst_right + step; 334 if(tmpleft < 0) 335 tmpleft = 0; 336 if(tmpright > fb->width - rightoffset) 337 tmpright = fb->width - rightoffset; 338 bltData.dst_left = tmpleft; 339 bltData.dst_right = tmpright; 340 usleep(1000); 341 } 332 342 333 343 if (ioctl(fb->fd, STMFBIO_BLT, &bltData) < 0) … … 338 348 { 339 349 perr("ioctl STMFBIO_SYNC_BLITTER"); 350 } 351 352 if(mode3d != 0) 353 { 354 if(mode3d == 1) 355 bltData.dst_left = 0 + leftoffset + ((fb->width - rightoffset) / 2); 356 if(mode3d == 2) 357 bltData.dst_top = 0 + topoffset + ((fb->height - bottomoffset) / 2); 358 bltData.dst_right = fb->width - rightoffset; 359 bltData.dst_bottom = fb->height - bottomoffset; 360 361 if (ioctl(fb->fd, STMFBIO_BLT, &bltData) < 0) 362 { 363 perr("ioctl STMFBIO_BLT"); 364 } 365 if(ioctl(fb->fd, STMFBIO_SYNC_BLITTER) < 0) 366 { 367 perr("ioctl STMFBIO_SYNC_BLITTER"); 368 } 340 369 } 341 370 } … … 415 444 { 416 445 FILE *fd; 417 446 fd=fopen("/tmp/titanlcd.raw", "w"); 418 447 int help = 0; 419 448 int i = 0; -
titan/titan/header.h
r13956 r14082 172 172 173 173 //fb.h 174 void blitfb( );174 void blitfb(int flag); 175 175 void changefbresolution(char *value); 176 176 void setfbtransparent(int value); -
titan/titan/menulist.h
r13961 r14082 230 230 clearscreennolock(screen); 231 231 restorescreen(bg, screen); 232 blitfb( );232 blitfb(0); 233 233 status.screencalc = tmpscreencalc; 234 234 sleep(1); -
titan/titan/mute.h
r13492 r14082 55 55 status.drawallways[0] = NULL; 56 56 if(flag == 0 || flag == 2) 57 blitfb( );57 blitfb(0); 58 58 } 59 59 } -
titan/titan/numinput.h
r13961 r14082 64 64 clearscreennolock(numinput); 65 65 restorescreen(bg, numinput); 66 blitfb( );66 blitfb(0); 67 67 status.screencalc = tmpscreencalc; 68 68 sleep(1); -
titan/titan/play.h
r14038 r14082 110 110 else if(mode == 2) 111 111 playerchangesubtitletrackts(); 112 blitfb( );112 blitfb(0); 113 113 return; 114 114 } … … 200 200 delownerrc(track); 201 201 clearscreen(track); 202 blitfb( );202 blitfb(0); 203 203 } 204 204 -
titan/titan/skin.h
r14037 r14082 3561 3561 3562 3562 drawscreenalways(node); 3563 blitfb( );3563 blitfb(0); 3564 3564 m_unlock(&status.drawingmutex, 0); 3565 3565 … … 3579 3579 3580 3580 drawscreenalways(node); 3581 blitfb( );3581 blitfb(0); 3582 3582 m_unlock(&status.drawingmutex, 0); 3583 3583 … … 3660 3660 pngforlcd(); 3661 3661 else 3662 blitfb( );3662 blitfb(0); 3663 3663 } 3664 3664 } -
titan/titan/spinner.h
r12501 r14082 80 80 //restore bg 81 81 restorescreen(bg, spinner); 82 blitfb( );82 blitfb(0); 83 83 status.screencalc = tmpscreencalc; 84 84 m_unlock(&status.drawingmutex, 0); -
titan/titan/standby.h
r13802 r14082 43 43 subtitlepause(1); 44 44 // clearfb(skinfb); 45 // blitfb( );45 // blitfb(0); 46 46 setfbtransparent(0); 47 47 setvfdbrightness(getconfigint("vfdstandbybrightness", NULL)); -
titan/titan/subtitle.h
r13639 r14082 98 98 } 99 99 100 if(stat == 1) blitfb( );100 if(stat == 1) blitfb(0); 101 101 subfree(0); 102 102 } … … 209 209 pageregnode = pageregnode->next; 210 210 } 211 if(stat == 1) blitfb( );211 if(stat == 1) blitfb(0); 212 212 } 213 213 -
titan/titan/textbox.h
r13961 r14082 96 96 clearscreennolock(messagebox); 97 97 restorescreen(bg, messagebox); 98 blitfb( );98 blitfb(0); 99 99 status.screencalc = tmpscreencalc; 100 100 sleep(1); -
titan/titan/textinput.h
r13961 r14082 55 55 clearscreennolock(textinput); 56 56 restorescreen(bg, textinput); 57 blitfb( );57 blitfb(0); 58 58 status.screencalc = tmpscreencalc; 59 59 sleep(1); -
titan/titan/timeshift.h
r14061 r14082 198 198 199 199 restorescreen(bg, timeshift); 200 blitfb( );200 blitfb(0); 201 201 close(fd); 202 202 }
Note: See TracChangeset
for help on using the changeset viewer.