• R/O
  • SSH
  • HTTPS

owata: Commit


Commit MetaInfo

Revision135 (tree)
Time2008-07-10 10:27:02
Authorbird_may_nike

Log Message

ちらつきを改善

Change Summary

Incremental Difference

--- trunc/src/psp2chFavorite.c (revision 134)
+++ trunc/src/psp2chFavorite.c (revision 135)
@@ -359,11 +359,11 @@
359359 psp2chDrawFavorite();
360360 }
361361 pgPrintMenuBar(menuStr);
362+ pgCopy(s2ch.viewX, 0);
363+ pgCopyMenuBar();
364+ sceDisplayWaitVblankStart();
365+ framebuffer = sceGuSwapBuffers();
362366 }
363- pgCopy(s2ch.viewX, 0);
364- pgCopyMenuBar();
365- sceDisplayWaitVblankStart();
366- framebuffer = sceGuSwapBuffers();
367367 }
368368 return 0;
369369 }
--- trunc/src/psp2ch.c (revision 134)
+++ trunc/src/psp2ch.c (revision 135)
@@ -101,7 +101,9 @@
101101 s2ch.pgCursorX = 450;
102102 s2ch.pgCursorY = 260;
103103 pgPrint(ver, BLUE, WHITE, SCR_WIDTH);
104- pgWaitVn(20);
104+ pgCopy(0, 0);
105+ sceDisplayWaitVblankStart();
106+ framebuffer = sceGuSwapBuffers();
105107 start = 1;
106108 }
107109 if(sceCtrlPeekBufferPositive(&s2ch.pad, 1))
@@ -128,9 +130,6 @@
128130 return;
129131 }
130132 }
131- pgCopy(0, 0);
132- sceDisplayWaitVblankStart();
133- framebuffer = sceGuSwapBuffers();
134133 }
135134 }
136135
--- trunc/src/psp2chResWindow.c (revision 134)
+++ trunc/src/psp2chResWindow.c (revision 135)
@@ -269,14 +269,14 @@
269269 if (change)
270270 {
271271 psp2chDrawResAnchor(a, anchor, lineFlag);
272+ pgCopyWindow(anchor.start * LINE_PITCH, startX, startY, scrX, scrY);
273+ pgWindowFrame(startX, startY, startX + scrX + barW, startY + scrY);
274+ bar.start = anchor.start * LINE_PITCH;
275+ pgScrollbar(&bar, s2ch.resABarColor);
276+ pgCopyMenuBar();
277+ sceDisplayWaitVblankStart();
278+ framebuffer = sceGuSwapBuffers();
272279 }
273- pgCopyWindow(anchor.start * LINE_PITCH, startX, startY, scrX, scrY);
274- pgWindowFrame(startX, startY, startX + scrX + barW, startY + scrY);
275- bar.start = anchor.start * LINE_PITCH;
276- pgScrollbar(&bar, s2ch.resABarColor);
277- pgCopyMenuBar();
278- sceDisplayWaitVblankStart();
279- framebuffer = sceGuSwapBuffers();
280280 }
281281 }
282282 return;
--- trunc/src/psp2chNet.c (revision 134)
+++ trunc/src/psp2chNet.c (revision 135)
@@ -213,7 +213,6 @@
213213
214214 sprintf(buf, " %s のアドレスを解決しています", host);
215215 pgPrintMenuBar(buf);
216- pgWaitVn(10);
217216 pgCopyMenuBar();
218217 sceDisplayWaitVblankStart();
219218 framebuffer = sceGuSwapBuffers();
@@ -242,7 +241,6 @@
242241 {
243242 pgPrintMenuBar(" Cat_ResolverURL error");
244243 sceNetApctlDisconnect();
245- pgWaitVn(10);
246244 pgCopyMenuBar();
247245 sceDisplayWaitVblankStart();
248246 framebuffer = sceGuSwapBuffers();
@@ -375,7 +373,6 @@
375373 }
376374 sprintf(buf, " %s (%s)", host, inet_ntoa(addr));
377375 pgPrintMenuBar(buf);
378- pgWaitVn(10);
379376 pgCopyMenuBar();
380377 sceDisplayWaitVblankStart();
381378 framebuffer = sceGuSwapBuffers();
@@ -385,7 +382,6 @@
385382 sain.sin_addr.s_addr = addr.s_addr;
386383 sprintf(buf, " http://%s/%s に接続しています", host, path);
387384 pgPrintMenuBar(buf);
388- pgWaitVn(10);
389385 pgCopyMenuBar();
390386 sceDisplayWaitVblankStart();
391387 framebuffer = sceGuSwapBuffers();
@@ -409,7 +405,6 @@
409405 sceKernelDelayThread(1000);
410406 }
411407 pgPrintMenuBar("接続しました");
412- pgWaitVn(10);
413408 pgCopyMenuBar();
414409 sceDisplayWaitVblankStart();
415410 framebuffer = sceGuSwapBuffers();
@@ -427,7 +422,6 @@
427422
428423 sprintf(buf, "http://%s/%s からデータを転送しています...", host, path);
429424 pgPrintMenuBar(buf);
430- pgWaitVn(10);
431425 pgCopyMenuBar();
432426 sceDisplayWaitVblankStart();
433427 framebuffer = sceGuSwapBuffers();
@@ -482,11 +476,9 @@
482476 recvSize -= 2;
483477 net->length = recvSize;
484478 recvBody += 2;
485- pgWaitVn(10);
486479 pgCopyMenuBar();
487480 sceDisplayWaitVblankStart();
488481 framebuffer = sceGuSwapBuffers();
489- pgWaitVn(10);
490482 return 0;
491483 }
492484
@@ -502,7 +494,6 @@
502494 char phrase[256];
503495
504496 pgPrintMenuBar(recvBuf);
505- pgWaitVn(10);
506497 pgCopyMenuBar();
507498 sceDisplayWaitVblankStart();
508499 framebuffer = sceGuSwapBuffers();
@@ -614,7 +605,6 @@
614605 }
615606
616607 pgPrintMenuBar(" Connecting...");
617- pgWaitVn(10);
618608 pgCopyMenuBar();
619609 sceDisplayWaitVblankStart();
620610 framebuffer = sceGuSwapBuffers();
@@ -642,7 +632,6 @@
642632 break; // connected with static IP
643633 }
644634 pgPrintMenuBar(buf);
645- pgWaitVn(10);
646635 pgCopyMenuBar();
647636 sceDisplayWaitVblankStart();
648637 framebuffer = sceGuSwapBuffers();
@@ -660,7 +649,6 @@
660649 pgPrintMenuBar(" 接続しました。");
661650 Cat_ResolverInitEngine();
662651 }
663- pgWaitVn(10);
664652 pgCopyMenuBar();
665653 sceDisplayWaitVblankStart();
666654 framebuffer = sceGuSwapBuffers();
@@ -702,7 +690,6 @@
702690 return 0;
703691 }
704692 pgPrintMenuBar("接続の設定を検索しています...");
705- pgWaitVn(10);
706693 pgCopyMenuBar();
707694 sceDisplayWaitVblankStart();
708695 framebuffer = sceGuSwapBuffers();
--- trunc/src/psp2chIta.c (revision 134)
+++ trunc/src/psp2chIta.c (revision 135)
@@ -300,11 +300,11 @@
300300 psp2chDrawCategory(s2ch.category.start, s2ch.category.select, s2ch.cateOnColor);
301301 psp2chDrawIta(s2ch.ita.start, s2ch.ita.select, s2ch.cateOnColor);
302302 }
303+ pgCopy(0, 0);
304+ pgCopyMenuBar();
305+ sceDisplayWaitVblankStart();
306+ framebuffer = sceGuSwapBuffers();
303307 }
304- pgCopy(0, 0);
305- pgCopyMenuBar();
306- sceDisplayWaitVblankStart();
307- framebuffer = sceGuSwapBuffers();
308308 }
309309 return 0;
310310 }
--- trunc/src/pg.c (revision 134)
+++ trunc/src/pg.c (revision 135)
@@ -218,15 +218,6 @@
218218 sceGuDepthBuffer((void*)0x110000,BUF_WIDTH);
219219 sceGuOffset(2048 - (SCR_WIDTH/2), 2048 - (SCR_HEIGHT/2));
220220 sceGuViewport(2048, 2048, SCR_WIDTH, SCR_HEIGHT);
221- /*
222- sceGuFrontFace(GU_CW);
223- sceGuShadeModel(GU_SMOOTH);
224- sceGuDisable(GU_DEPTH_TEST);
225- sceGuDepthRange(65535, 0);
226- sceGuDepthFunc(GU_GEQUAL);
227- sceGuEnable(GU_CULL_FACE);
228- sceGuEnable(GU_CLIP_PLANES);
229- */
230221 sceGuEnable(GU_SCISSOR_TEST);
231222 sceGuScissor(0, 0, SCR_WIDTH, SCR_HEIGHT);
232223 sceGuEnable(GU_BLEND);
@@ -250,7 +241,6 @@
250241 }
251242 pgFillvram(WHITE, 0, 0, SCR_WIDTH, SCR_HEIGHT, 2);
252243 pgPrintMonaWait();
253- pgWaitVn(20);
254244 pgCopy(0, 0);
255245 sceDisplayWaitVblankStart();
256246 framebuffer = sceGuSwapBuffers();
@@ -359,6 +349,7 @@
359349 vertices[1].y = dst_rect->bottom;
360350 sceGuDrawArray(GU_SPRITES, GU_TEXTURE_16BIT | GU_COLOR_4444 | GU_VERTEX_16BIT | GU_TRANSFORM_2D, 2, NULL, vertices);
361351 }
352+ sceKernelDcacheWritebackAll();
362353 sceGuFinish();
363354 sceGuSync(0, GU_SYNC_FINISH);
364355 }
@@ -414,6 +405,7 @@
414405 vertices[1].y = dst_rect->bottom;
415406 sceGuDrawArray(GU_SPRITES, GU_TEXTURE_16BIT | GU_COLOR_4444 | GU_VERTEX_16BIT | GU_TRANSFORM_2D, 2, NULL, vertices);
416407 }
408+ sceKernelDcacheWritebackAll();
417409 sceGuFinish();
418410 sceGuSync(0, GU_SYNC_FINISH);
419411 }
@@ -496,7 +488,6 @@
496488 pgPrint(date, s2ch.formColor.title, s2ch.formColor.title_bg, SCR_WIDTH);
497489 }
498490 printBuf = temp;
499- pgWaitVn(6);
500491 }
501492 /*****************************
502493 タイトルバーを表示
--- trunc/src/psp2chMenu.c (revision 134)
+++ trunc/src/psp2chMenu.c (revision 135)
@@ -105,6 +105,18 @@
105105 }
106106 psp2chDrawMenu((char**)menuList, menu, startX, startY, scrX, scrY);
107107 pgPrintMenuBar(menuStr);
108+ printBuf = pixels;
109+ pgCopy(s2ch.viewX, s2ch.viewY);
110+ if (bar)
111+ {
112+ pgScrollbar(bar, s2ch.resBarColor);
113+ }
114+ printBuf = winPixels;
115+ pgCopyWindow(0, startX, startY, scrX, scrY);
116+ pgWindowFrame(startX, startY, startX + scrX, startY + scrY);
117+ pgCopyMenuBar();
118+ sceDisplayWaitVblankStart();
119+ framebuffer = sceGuSwapBuffers();
108120 while (s2ch.running)
109121 {
110122 if(sceCtrlPeekBufferPositive(&s2ch.pad, 1))
@@ -142,20 +154,20 @@
142154 if (change)
143155 {
144156 psp2chDrawMenu((char**)menuList, menu, startX, startY, scrX, scrY);
157+ printBuf = pixels;
158+ pgCopy(s2ch.viewX, s2ch.viewY);
159+ if (bar)
160+ {
161+ pgScrollbar(bar, s2ch.resBarColor);
162+ }
163+ printBuf = winPixels;
164+ pgCopyWindow(0, startX, startY, scrX, scrY);
165+ pgWindowFrame(startX, startY, startX + scrX, startY + scrY);
166+ pgCopyMenuBar();
167+ sceDisplayWaitVblankStart();
168+ framebuffer = sceGuSwapBuffers();
145169 }
146170 }
147- printBuf = pixels;
148- pgCopy(s2ch.viewX, s2ch.viewY);
149- if (bar)
150- {
151- pgScrollbar(bar, s2ch.resBarColor);
152- }
153- printBuf = winPixels;
154- pgCopyWindow(0, startX, startY, scrX, scrY);
155- pgWindowFrame(startX, startY, startX + scrX, startY + scrY);
156- pgCopyMenuBar();
157- sceDisplayWaitVblankStart();
158- framebuffer = sceGuSwapBuffers();
159171 }
160172 return 0;
161173 }
@@ -201,6 +213,18 @@
201213 }
202214 psp2chDrawMenu((char**)menuList, menu, startX, startY, scrX, scrY);
203215 pgPrintMenuBar(menuStr);
216+ printBuf = pixels;
217+ pgCopy(s2ch.viewX, s2ch.viewY);
218+ if (bar)
219+ {
220+ pgScrollbar(bar, s2ch.resBarColor);
221+ }
222+ printBuf = winPixels;
223+ pgCopyWindow(0, startX, startY, scrX, scrY);
224+ pgWindowFrame(startX, startY, startX + scrX, startY + scrY);
225+ pgCopyMenuBar();
226+ sceDisplayWaitVblankStart();
227+ framebuffer = sceGuSwapBuffers();
204228 while (s2ch.running)
205229 {
206230 if(sceCtrlPeekBufferPositive(&s2ch.pad, 1))
@@ -214,13 +238,11 @@
214238 switch (menu.select)
215239 {
216240 case 0: // NG name add
217- pgFillvram(s2ch.menuWinColor.bg, 0, 0, BUF_WIDTH, BUF_HEIGHT, 2);
218- pgCopy(0,0);
219- framebuffer = sceGuSwapBuffers();
220241 if (psp2chInputDialog(title1, text) == 0 && keyWords[0])
221242 {
222243 psp2chNGAdd(ngNameFile, keyWords);
223244 }
245+ printBuf = winPixels;
224246 break;
225247 case 1: // NG name del
226248 psp2chNGDel(ngNameFile, bar);
@@ -229,25 +251,21 @@
229251 psp2chNGDel(ngIDFile, bar);
230252 break;
231253 case 3: // NG word add
232- pgFillvram(s2ch.menuWinColor.bg, 0, 0, BUF_WIDTH, BUF_HEIGHT, 2);
233- pgCopy(0,0);
234- framebuffer = sceGuSwapBuffers();
235254 if (psp2chInputDialog(title2, text) == 0 && keyWords[0])
236255 {
237256 psp2chNGAdd(ngWordFile, keyWords);
238257 }
258+ printBuf = winPixels;
239259 break;
240260 case 4: // NG word del
241261 psp2chNGDel(ngWordFile, bar);
242262 break;
243263 case 5: // NG mail add
244- pgFillvram(s2ch.menuWinColor.bg, 0, 0, BUF_WIDTH, BUF_HEIGHT, 2);
245- pgCopy(0,0);
246- framebuffer = sceGuSwapBuffers();
247264 if (psp2chInputDialog(title3, text) == 0 && keyWords[0])
248265 {
249266 psp2chNGAdd(ngMailFile, keyWords);
250267 }
268+ printBuf = winPixels;
251269 break;
252270 case 6: // NG mail del
253271 psp2chNGDel(ngMailFile, bar);
@@ -263,20 +281,20 @@
263281 if (change)
264282 {
265283 psp2chDrawMenu((char**)menuList, menu, startX, startY, scrX, scrY);
284+ printBuf = pixels;
285+ pgCopy(s2ch.viewX, s2ch.viewY);
286+ if (bar)
287+ {
288+ pgScrollbar(bar, s2ch.resBarColor);
289+ }
290+ printBuf = winPixels;
291+ pgCopyWindow(0, startX, startY, scrX, scrY);
292+ pgWindowFrame(startX, startY, startX + scrX, startY + scrY);
293+ pgCopyMenuBar();
294+ sceDisplayWaitVblankStart();
295+ framebuffer = sceGuSwapBuffers();
266296 }
267297 }
268- printBuf = pixels;
269- pgCopy(s2ch.viewX, s2ch.viewY);
270- if (bar)
271- {
272- pgScrollbar(bar, s2ch.resBarColor);
273- }
274- printBuf = winPixels;
275- pgCopyWindow(0, startX, startY, scrX, scrY);
276- pgWindowFrame(startX, startY, startX + scrX, startY + scrY);
277- pgCopyMenuBar();
278- sceDisplayWaitVblankStart();
279- framebuffer = sceGuSwapBuffers();
280298 }
281299 }
282300
@@ -390,6 +408,18 @@
390408 }
391409 psp2chDrawMenu(list, menu, startX, startY, scrX, scrY);
392410 pgPrintMenuBar(menuStr);
411+ printBuf = pixels;
412+ pgCopy(s2ch.viewX, s2ch.viewY);
413+ if (bar)
414+ {
415+ pgScrollbar(bar, s2ch.resBarColor);
416+ }
417+ printBuf = winPixels;
418+ pgCopyWindow(0, startX, startY, scrX, scrY);
419+ pgWindowFrame(startX, startY, startX + scrX, startY + scrY);
420+ pgCopyMenuBar();
421+ sceDisplayWaitVblankStart();
422+ framebuffer = sceGuSwapBuffers();
393423 while (s2ch.running)
394424 {
395425 if(sceCtrlPeekBufferPositive(&s2ch.pad, 1))
@@ -431,20 +461,20 @@
431461 if (change)
432462 {
433463 psp2chDrawMenu(list, menu, startX, startY, scrX, scrY);
464+ printBuf = pixels;
465+ pgCopy(s2ch.viewX, s2ch.viewY);
466+ if (bar)
467+ {
468+ pgScrollbar(bar, s2ch.resBarColor);
469+ }
470+ printBuf = winPixels;
471+ pgCopyWindow(0, startX, startY, scrX, scrY);
472+ pgWindowFrame(startX, startY, startX + scrX, startY + scrY);
473+ pgCopyMenuBar();
474+ sceDisplayWaitVblankStart();
475+ framebuffer = sceGuSwapBuffers();
434476 }
435477 }
436- printBuf = pixels;
437- pgCopy(s2ch.viewX, s2ch.viewY);
438- if (bar)
439- {
440- pgScrollbar(bar, s2ch.resBarColor);
441- }
442- printBuf = winPixels;
443- pgCopyWindow(0, startX, startY, scrX, scrY);
444- pgWindowFrame(startX, startY, startX + scrX, startY + scrY);
445- pgCopyMenuBar();
446- sceDisplayWaitVblankStart();
447- framebuffer = sceGuSwapBuffers();
448478 }
449479 free(list);
450480 free(buf);
@@ -470,7 +500,6 @@
470500 sceIoWrite(fd, "\n", 1);
471501 sceIoClose(fd);
472502 pgPrintMenuBar("登録しました");
473- pgWaitVn(10);
474503 pgCopyMenuBar();
475504 sceDisplayWaitVblankStart();
476505 framebuffer = sceGuSwapBuffers();
@@ -551,6 +580,18 @@
551580 }
552581 psp2chDrawMenu((char**)menuList, menu, startX, startY, scrX, scrY);
553582 pgPrintMenuBar(menuStr);
583+ printBuf = pixels;
584+ pgCopy(s2ch.viewX, s2ch.viewY);
585+ if (bar)
586+ {
587+ pgScrollbar(bar, s2ch.resBarColor);
588+ }
589+ printBuf = winPixels;
590+ pgCopyWindow(0, startX, startY, scrX, scrY);
591+ pgWindowFrame(startX, startY, startX + scrX, startY + scrY);
592+ pgCopyMenuBar();
593+ sceDisplayWaitVblankStart();
594+ framebuffer = sceGuSwapBuffers();
554595 while (s2ch.running)
555596 {
556597 if(sceCtrlPeekBufferPositive(&s2ch.pad, 1))
@@ -577,19 +618,19 @@
577618 if (change)
578619 {
579620 psp2chDrawMenu((char**)menuList, menu, startX, startY, scrX, scrY);
621+ printBuf = pixels;
622+ pgCopy(s2ch.viewX, s2ch.viewY);
623+ if (bar)
624+ {
625+ pgScrollbar(bar, s2ch.resBarColor);
626+ }
627+ printBuf = winPixels;
628+ pgCopyWindow(0, startX, startY, scrX, scrY);
629+ pgWindowFrame(startX, startY, startX + scrX, startY + scrY);
630+ pgCopyMenuBar();
631+ sceDisplayWaitVblankStart();
632+ framebuffer = sceGuSwapBuffers();
580633 }
581- printBuf = pixels;
582- pgCopy(s2ch.viewX, s2ch.viewY);
583- if (bar)
584- {
585- pgScrollbar(bar, s2ch.resBarColor);
586- }
587- printBuf = winPixels;
588- pgCopyWindow(0, startX, startY, scrX, scrY);
589- pgWindowFrame(startX, startY, startX + scrX, startY + scrY);
590- pgCopyMenuBar();
591- sceDisplayWaitVblankStart();
592- framebuffer = sceGuSwapBuffers();
593634 }
594635 }
595636 for (i = 0; i < s2ch.font.count; i++)
@@ -690,6 +731,12 @@
690731 }
691732 psp2chDrawMenu((char**)menuList, menu, startX, startY, scrX, scrY);
692733 pgPrintMenuBar(menuStr);
734+ printBuf = winPixels;
735+ pgCopyWindow(0, startX, startY, scrX, scrY);
736+ pgWindowFrame(startX, startY, startX + scrX, startY + scrY);
737+ pgCopyMenuBar();
738+ sceDisplayWaitVblankStart();
739+ framebuffer = sceGuSwapBuffers();
693740 while (s2ch.running)
694741 {
695742 if(sceCtrlPeekBufferPositive(&s2ch.pad, 1))
@@ -718,20 +765,20 @@
718765 if (change)
719766 {
720767 psp2chDrawMenu((char**)menuList, menu, startX, startY, scrX, scrY);
768+ printBuf = pixels;
769+ pgCopy(s2ch.viewX, s2ch.viewY);
770+ if (bar)
771+ {
772+ pgScrollbar(bar, s2ch.resBarColor);
773+ }
774+ printBuf = winPixels;
775+ pgCopyWindow(0, startX, startY, scrX, scrY);
776+ pgWindowFrame(startX, startY, startX + scrX, startY + scrY);
777+ pgCopyMenuBar();
778+ sceDisplayWaitVblankStart();
779+ framebuffer = sceGuSwapBuffers();
721780 }
722781 }
723- printBuf = pixels;
724- pgCopy(s2ch.viewX, s2ch.viewY);
725- if (bar)
726- {
727- pgScrollbar(bar, s2ch.resBarColor);
728- }
729- printBuf = winPixels;
730- pgCopyWindow(0, startX, startY, scrX, scrY);
731- pgWindowFrame(startX, startY, startX + scrX, startY + scrY);
732- pgCopyMenuBar();
733- sceDisplayWaitVblankStart();
734- framebuffer = sceGuSwapBuffers();
735782 }
736783 for (i = 1; i < menu.count; i++)
737784 {
--- trunc/src/psp2chSearch.c (revision 134)
+++ trunc/src/psp2chSearch.c (revision 135)
@@ -80,34 +80,16 @@
8080 static int ret = 0;
8181 int lineEnd, rMenu, change, res;
8282
83- if (s2ch.findList == NULL)
84- {
85- if (psp2chSearchList() < 0)
86- {
87- s2ch.sel = retSel;
88- return 0;
89- }
90- ret = retSel;
91- s2ch.find.start = 0;
92- s2ch.find.select = 0;
93- psp2chDrawSearch();
94- }
95- if (s2ch.tateFlag)
96- {
97- lineEnd = DRAW_LINE_V;
98- }
99- else
100- {
101- lineEnd = DRAW_LINE_H;
102- }
10383 if(sceCtrlPeekBufferPositive(&s2ch.pad, 1))
10484 {
10585 if (s2ch.tateFlag)
10686 {
87+ lineEnd = DRAW_LINE_V;
10788 rMenu = psp2chCursorSet(&s2ch.find, lineEnd, s2ch.findV.shift, &change);
10889 }
10990 else
11091 {
92+ lineEnd = DRAW_LINE_H;
11193 rMenu = psp2chCursorSet(&s2ch.find, lineEnd, s2ch.findH.shift, &change);
11294 }
11395 if (rMenu)
@@ -132,6 +114,19 @@
132114 menuStr = s2ch.menuSearchH.main;
133115 }
134116 }
117+ if (s2ch.findList == NULL)
118+ {
119+ if (psp2chSearchList() < 0)
120+ {
121+ s2ch.sel = retSel;
122+ return 0;
123+ }
124+ ret = retSel;
125+ s2ch.find.start = 0;
126+ s2ch.find.select = 0;
127+ pgPrintMenuBar(menuStr);
128+ change = 1;
129+ }
135130 if (s2ch.pad.Buttons != s2ch.oldPad.Buttons)
136131 {
137132 s2ch.oldPad = s2ch.pad;
@@ -186,11 +181,11 @@
186181 {
187182 s2ch.viewX = res;
188183 psp2chDrawSearch();
184+ pgCopy(s2ch.viewX, 0);
185+ pgCopyMenuBar();
186+ sceDisplayWaitVblankStart();
187+ framebuffer = sceGuSwapBuffers();
189188 }
190- pgCopy(s2ch.viewX, 0);
191- pgCopyMenuBar();
192- sceDisplayWaitVblankStart();
193- framebuffer = sceGuSwapBuffers();
194189 }
195190 return 0;
196191 }
--- trunc/src/psp2chThread.c (revision 134)
+++ trunc/src/psp2chThread.c (revision 135)
@@ -204,11 +204,11 @@
204204 {
205205 s2ch.viewX = res;
206206 psp2chDrawThread();
207+ pgCopy(s2ch.viewX, 0);
208+ pgCopyMenuBar();
209+ sceDisplayWaitVblankStart();
210+ framebuffer = sceGuSwapBuffers();
207211 }
208- pgCopy(s2ch.viewX, 0);
209- pgCopyMenuBar();
210- sceDisplayWaitVblankStart();
211- framebuffer = sceGuSwapBuffers();
212212 }
213213 return 0;
214214 }
Show on old repository browser