Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit582fda8

Browse files
committed
couple of adjustments to the unix port
1 parenta796939 commit582fda8

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

‎builder/unix.py‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,20 @@ def compile(): # NOQA
177177
withopen(mpconfigvariant_common_path,'w')asf:
178178
f.write(mpconfigvariant_common)
179179

180+
if'#define MICROPY_SCHEDULER_DEPTH (128)'notinmpconfigvariant_common:
181+
mpconfigvariant_common+='\n\n'
182+
mpconfigvariant_common+='#define MICROPY_SCHEDULER_DEPTH (128)\n'
183+
184+
withopen(mpconfigvariant_common_path,'w')asf:
185+
f.write(mpconfigvariant_common)
186+
187+
if'#define MICROPY_STACK_CHECK (0)'notinmpconfigvariant_common:
188+
mpconfigvariant_common+='\n'
189+
mpconfigvariant_common+='#define MICROPY_STACK_CHECK (0)\n'
190+
191+
withopen(mpconfigvariant_common_path,'w')asf:
192+
f.write(mpconfigvariant_common)
193+
180194
build_sdl()
181195

182196
return_code,_=spawn(compile_cmd)

‎ext_mod/lcd_bus/sdl_bus/sdl_bus.c‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,11 @@
112112
LCD_UNUSED(color_size);
113113

114114
mp_lcd_sdl_bus_obj_t*self=MP_OBJ_TO_PTR(obj);
115-
115+
while (!self->trans_done) {}
116+
self->trans_done= false;
116117
self->panel_io_config.buf_to_flush=color;
117118
SDL_UnlockMutex(self->panel_io_config.mutex);
119+
118120
if (self->callback!=mp_const_none&&mp_obj_is_callable(self->callback)) {
119121
mp_call_function_n_kw(self->callback,0,0,NULL);
120122
}
@@ -227,8 +229,9 @@
227229
SDL_RenderClear(self->renderer);
228230
SDL_RenderCopy(self->renderer,self->texture,NULL,NULL);
229231
SDL_RenderPresent(self->renderer);
230-
self->trans_done= true;
231232
}
233+
234+
self->trans_done= true;
232235
}
233236
return0;
234237
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp