📄 wm_setxsize.txt
字号:
; generated by ARM C/C++ Compiler with , RVCT4.0 [Build 524] for uVision
; commandline ArmCC [--split_sections --debug -c --asm --interleave -o.\Obj\wm_setxsize.o --depend=.\Obj\wm_setxsize.d --device=DARMSTM --apcs=interwork -O3 -I..\..\include -I..\..\..\FWLib\library\inc -I..\..\..\USBLib\library\inc -I..\..\Config -I..\..\GUI\Core -I..\..\GUI\Font -I..\..\GUI\ConvertColor -I..\..\GUI\AntiAlias -I..\..\GUI\ConvertMono -I..\..\GUI\JPEG -I..\..\GUI\MemDev -I..\..\GUI\MultiLayer -I..\..\GUI\Widget -I..\..\GUI\WM -IC:\Keil\ARM\INC\ST\STM32F10x ..\..\GUI\WM\WM_SetXSize.c]
THUMB
AREA ||i.WM_SetXSize||, CODE, READONLY, ALIGN=1
WM_SetXSize PROC
;;;33 */
;;;34 int WM_SetXSize(WM_HWIN hWin, int XSize) {
000000 b570 PUSH {r4-r6,lr}
000002 0005 MOVS r5,r0
000004 460e MOV r6,r1
;;;35 WM_Obj* pWin;
;;;36 int dx;
;;;37 int r = 0;
000006 f04f0000 MOV r0,#0
;;;38 if (hWin) {
00000a d014 BEQ |L1.54|
;;;39 WM_LOCK();
;;;40 pWin = WM_H2P(hWin);
00000c 4628 MOV r0,r5
00000e f7fffffe BL GUI_ALLOC_h2p
000012 4604 MOV r4,r0
;;;41 dx = XSize - (pWin->Rect.x1 - pWin->Rect.x0 + 1);
000014 f9b01004 LDRSH r1,[r0,#4]
000018 f9b00000 LDRSH r0,[r0,#0]
;;;42 WM_ResizeWindow(hWin, dx, 0);
00001c 2200 MOVS r2,#0
00001e 1a08 SUBS r0,r1,r0 ;41
000020 1a31 SUBS r1,r6,r0 ;41
000022 1e49 SUBS r1,r1,#1 ;41
000024 4628 MOV r0,r5
000026 f7fffffe BL WM_ResizeWindow
;;;43 r = pWin->Rect.x1 - pWin->Rect.x0 + 1;
00002a f9b41004 LDRSH r1,[r4,#4]
00002e f9b40000 LDRSH r0,[r4,#0]
000032 1a08 SUBS r0,r1,r0
000034 1c40 ADDS r0,r0,#1
|L1.54|
;;;44 WM_UNLOCK();
;;;45 }
;;;46 return r;
;;;47 }
000036 bd70 POP {r4-r6,pc}
;;;48
ENDP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -