• R/O
  • SSH
  • HTTPS

dxruby: Commit


Commit MetaInfo

Revision548 (tree)
Time2017-03-12 18:06:06
Authormirichi

Log Message

自動updateの修正漏れ対応

Change Summary

Incremental Difference

--- branches/1.5dev/sprite.c (revision 547)
+++ branches/1.5dev/sprite.c (revision 548)
@@ -288,19 +288,7 @@
288288 /* RenderTargetだった場合に描画予約があればupdateする */
289289 if( DXRUBY_CHECK( RenderTarget, sprite->vimage ) )
290290 {
291- struct DXRubyRenderTarget *src_rt = DXRUBY_GET_STRUCT( RenderTarget, sprite->vimage );
292-
293- if( src_rt->clearflag == 0 && src_rt->PictureCount == 0 )
294- {
295- g_pD3DDevice->lpVtbl->SetRenderTarget( g_pD3DDevice, 0, src_rt->surface );
296- g_pD3DDevice->lpVtbl->Clear( g_pD3DDevice, 0, NULL, D3DCLEAR_TARGET,
297- D3DCOLOR_ARGB( src_rt->a, src_rt->r, src_rt->g, src_rt->b ), 1.0f, 0 );
298- src_rt->clearflag = 1;
299- }
300- else if( src_rt->PictureCount > 0 )
301- {
302- RenderTarget_update( sprite->vimage );
303- }
291+ rb_funcall( vrt, SYM2ID( symbol_update ), 0 );
304292 }
305293
306294 /* 使われたimageのロック */
Show on old repository browser